(1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.0ms) select sqlite_version(*)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCoalescingPandaCanvasApiAuths (20131114150001)  (0.1ms) begin transaction  (0.5ms) 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) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131114150001"]]  (1.0ms) commit transaction Migrating to CreateCoalescingPandaLtiAccounts (20131118211442)  (0.1ms) begin transaction  (0.3ms) 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) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131118211442"]]  (0.7ms) commit transaction Migrating to CreateCoalescingPandaLtiNonces (20131119165343)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "coalescing_panda_lti_nonces" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "coalescing_panda_lti_account_id" integer, "nonce" varchar, "timestamp" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131119165343"]]  (0.7ms) commit transaction Migrating to CreateCoalescingPandaSessions (20140904223159)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "coalescing_panda_sessions" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "token" varchar, "data" text, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140904223159"]]  (0.6ms) commit transaction Migrating to CreateCoalescingPandaTerms (20141119225319)  (0.0ms) begin transaction  (0.4ms) 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)  (1.0ms) CREATE UNIQUE INDEX "index_terms_account" ON "coalescing_panda_terms" ("canvas_term_id", "coalescing_panda_lti_account_id")  (0.1ms) 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'  (0.1ms) CREATE INDEX "index_coalescing_panda_terms_on_sis_id" ON "coalescing_panda_terms" ("sis_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225319"]]  (0.7ms) commit transaction Migrating to CreateCoalescingPandaCourses (20141119225721)  (0.0ms) begin transaction  (0.3ms) CREATE 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)   (0.3ms) CREATE UNIQUE INDEX "index_courses_account" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "canvas_course_id")  (0.1ms)  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'   (0.1ms) CREATE UNIQUE INDEX "index_courses_term" ON "coalescing_panda_courses" ("coalescing_panda_term_id", "canvas_course_id")  (0.0ms)  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'   (0.0ms) 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'  (0.1ms) CREATE INDEX "index_coalescing_panda_courses_on_sis_id" ON "coalescing_panda_courses" ("sis_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141119225721"]]  (0.7ms) commit transaction Migrating to CreateCoalescingPandaSections (20141120151432)  (0.1ms) begin transaction  (0.3ms) CREATE 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)   (0.4ms) CREATE UNIQUE INDEX "index_sections_course" ON "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id")  (0.1ms)  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'   (0.1ms) CREATE INDEX "index_coalescing_panda_sections_on_sis_id" ON "coalescing_panda_sections" ("sis_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151432"]]  (0.9ms) commit transaction Migrating to CreateCoalescingPandaAssignments (20141120151940)  (0.0ms) begin transaction  (0.5ms) 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)  (0.4ms) CREATE UNIQUE INDEX "index_assignments_course" ON "coalescing_panda_assignments" ("coalescing_panda_course_id", "canvas_assignment_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120151940"]]  (1.0ms) commit transaction Migrating to CreateCoalescingPandaUsers (20141120152458)  (0.1ms) begin transaction  (0.5ms) CREATE 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)   (0.5ms) CREATE UNIQUE INDEX "index_users_account" ON "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id")  (0.1ms)  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'   (0.1ms) CREATE INDEX "index_coalescing_panda_users_on_sis_id" ON "coalescing_panda_users" ("sis_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120152458"]]  (1.0ms) commit transaction Migrating to CreateCoalescingPandaSubmissions (20141120152546)  (0.1ms) begin transaction  (0.3ms) 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)  (0.5ms) CREATE UNIQUE INDEX "index_submissions_user_and_assignment" ON "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id")  (0.1ms) 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'  (0.1ms) CREATE INDEX "index_coalescing_panda_submissions_on_canvas_submission_id" ON "coalescing_panda_submissions" ("canvas_submission_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120152546"]]  (0.8ms) commit transaction Migrating to CreateCoalescingPandaEnrollments (20141120153135)  (0.1ms) begin transaction  (0.3ms) CREATE 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)   (0.3ms) CREATE UNIQUE INDEX "index_enrollments_user_and_section" ON "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "enrollment_type")  (0.0ms)  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'   (0.1ms) CREATE INDEX "index_coalescing_panda_enrollments_on_sis_id" ON "coalescing_panda_enrollments" ("sis_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141120153135"]]  (1.0ms) commit transaction Migrating to CreateCoalescingPandaCanvasBatches (20141121174846)  (0.1ms) begin transaction  (0.3ms) 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) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141121174846"]]  (0.5ms) commit transaction Migrating to CreateDelayedJobs (20141124160857)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "delayed_jobs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "priority" integer DEFAULT 0 NOT NULL, "attempts" integer DEFAULT 0 NOT NULL, "handler" text NOT NULL, "last_error" text, "run_at" datetime, "locked_at" datetime, "failed_at" datetime, "locked_by" varchar, "queue" varchar, "created_at" datetime, "updated_at" datetime)  (0.1ms) CREATE INDEX "delayed_jobs_priority" ON "delayed_jobs" ("priority", "run_at") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141124160857"]]  (0.6ms) commit transaction Migrating to AddSubmissionTypesToAssignments (20141208221740)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "coalescing_panda_assignments" ADD "submission_types" text SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141208221740"]]  (0.5ms) commit transaction Migrating to AddGroupCategoryIdToAssignment (20150106175418)  (0.1ms) begin transaction  (0.4ms) ALTER TABLE "coalescing_panda_assignments" ADD "group_category_id" integer  (0.1ms) ALTER TABLE "coalescing_panda_assignments" ADD "grade_group_students_individually" boolean SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150106175418"]]  (0.6ms) commit transaction Migrating to AddPublishedToAssignments (20150106180131)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "coalescing_panda_assignments" ADD "published" boolean SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150106180131"]]  (0.6ms) commit transaction Migrating to CreateCoalescingPandaGroups (20150107205405)  (0.1ms) begin transaction  (0.3ms) 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)  (0.4ms) CREATE UNIQUE INDEX "index_groups_context_and_group_id" ON "coalescing_panda_groups" ("context_id", "canvas_group_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150107205405"]]  (0.7ms) commit transaction Migrating to CreateCoalescingPandaGroupMemberships (20150107205413)  (0.0ms) begin transaction  (0.5ms) CREATE 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)   (0.5ms) CREATE UNIQUE INDEX "index_group_memberships_user_and_group" ON "coalescing_panda_group_memberships" ("coalescing_panda_group_id", "coalescing_panda_user_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150107205413"]]  (1.0ms) commit transaction Migrating to AddContextToCanvasBatch (20150210180516)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "coalescing_panda_canvas_batches" ADD "context_id" integer  (0.1ms) ALTER TABLE "coalescing_panda_canvas_batches" ADD "context_type" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150210180516"]]  (0.6ms) commit transaction Migrating to CreateCoalescingPandaAssignmentGroups (20150506183335)  (0.0ms) begin transaction  (0.4ms) CREATE 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)   (0.4ms) CREATE UNIQUE INDEX "index_assignment_group_course" ON "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id")  (0.1ms)  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'   (0.1ms) CREATE UNIQUE INDEX "index_assignment_group_context" ON "coalescing_panda_assignment_groups" ("canvas_assignment_group_id", "context_id", "context_type") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150506183335"]]  (0.8ms) commit transaction Migrating to AddAssignmentGroupIdToAssignments (20150506192717)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "coalescing_panda_assignments" ADD "coalescing_panda_assignment_group_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150506192717"]]  (0.5ms) commit transaction Migrating to AddAccountToCanvasBatches (20150526144713)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "coalescing_panda_canvas_batches" ADD "coalescing_panda_lti_account_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150526144713"]]  (0.6ms) commit transaction Migrating to AddOptionToCanvasBatches (20150602205257)  (0.1ms) begin transaction  (0.6ms) ALTER TABLE "coalescing_panda_canvas_batches" ADD "options" text SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150602205257"]]  (0.6ms) commit transaction Migrating to AddGroupModeratorToGroupMemberships (20150708192717)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "coalescing_panda_group_memberships" ADD "moderator" boolean SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150708192717"]]  (0.5ms) commit transaction Migrating to AddLeaderIdToGroups (20150709192717)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "coalescing_panda_groups" ADD "leader_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150709192717"]]  (0.5ms) commit transaction Migrating to CreateCoalescingPandaGroupCategories (20150714205405)  (0.1ms) begin transaction  (0.5ms) 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)  (0.1ms) CREATE INDEX "index_group_categories_context_and_context_type" ON "coalescing_panda_group_categories" ("context_id", "context_type")  (0.2ms) ALTER TABLE "coalescing_panda_assignments" ADD "coalescing_panda_group_category_id" integer  (0.1ms) ALTER TABLE "coalescing_panda_groups" ADD "coalescing_panda_group_category_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150714205405"]]  (0.7ms) commit transaction Migrating to AddFieldsToUsers (20150811140030)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "coalescing_panda_users" ADD "login_id" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150811140030"]]  (0.5ms) commit transaction Migrating to AddRefreshSettingsToCanvasApiAuth (20151209155923)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "coalescing_panda_canvas_api_auths" ADD "refresh_token" varchar  (0.1ms) ALTER TABLE "coalescing_panda_canvas_api_auths" ADD "expires_at" datetime SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20151209155923"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'   (0.1ms) 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'  (0.1ms)  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'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 SQL (0.4ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.0ms) 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"} CoalescingPanda::LtiAccount Load (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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) CoalescingPanda::CanvasApiAuth Load (0.1ms) 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"]]  (0.8ms) rollback transaction  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1 SQL (0.6ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.188099"], ["updated_at", "2015-12-09 17:34:39.188099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.4ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 17:34:39.233721"], ["updated_at", "2015-12-09 17:34:39.233721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:39.251292"], ["updated_at", "2015-12-09 17:34:39.251292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 SQL (0.5ms) INSERT INTO "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 17:34:39.272968"], ["updated_at", "2015-12-09 17:34:39.272968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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.276277"], ["updated_at", "2015-12-09 17:34:39.276277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "11"], ["created_at", "2015-12-09 17:34:39.280884"], ["updated_at", "2015-12-09 17:34:39.280884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:39.286297"], ["updated_at", "2015-12-09 17:34:39.286297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 SQL (0.0ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 SQL (0.0ms) INSERT INTO "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 17:34:39.384895"], ["updated_at", "2015-12-09 17:34:39.384895"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "10"], ["created_at", "2015-12-09 17:34:39.387605"], ["updated_at", "2015-12-09 17:34:39.387605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "15"], ["created_at", "2015-12-09 17:34:39.406988"], ["updated_at", "2015-12-09 17:34:39.406988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2"], ["created_at", "2015-12-09 17:34:39.410216"], ["updated_at", "2015-12-09 17:34:39.410216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 17:34:39.418440"], ["updated_at", "2015-12-09 17:34:39.418440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 SQL (0.0ms) INSERT INTO "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 17:34:39.424236"], ["updated_at", "2015-12-09 17:34:39.424236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "12"], ["created_at", "2015-12-09 17:34:39.427074"], ["updated_at", "2015-12-09 17:34:39.427074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "17"], ["created_at", "2015-12-09 17:34:39.443360"], ["updated_at", "2015-12-09 17:34:39.443360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-09 17:34:39.446309"], ["updated_at", "2015-12-09 17:34:39.446309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 17:34:39.461060"], ["updated_at", "2015-12-09 17:34:39.461060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 SQL (0.0ms) INSERT INTO "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 17:34:39.466820"], ["updated_at", "2015-12-09 17:34:39.466820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "14"], ["created_at", "2015-12-09 17:34:39.469440"], ["updated_at", "2015-12-09 17:34:39.469440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 17:34:39.472092"], ["updated_at", "2015-12-09 17:34:39.472092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "19"], ["created_at", "2015-12-09 17:34:39.489266"], ["updated_at", "2015-12-09 17:34:39.489266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2015-12-09 17:34:39.491604"], ["updated_at", "2015-12-09 17:34:39.491604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:39.509064"], ["updated_at", "2015-12-09 17:34:39.509064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:39.520859"], ["updated_at", "2015-12-09 17:34:39.520859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:39.533401"], ["updated_at", "2015-12-09 17:34:39.533401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:39.550223"], ["updated_at", "2015-12-09 17:34:39.550223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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 17:34:39.568204"], ["updated_at", "2015-12-09 17:34:39.568204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 SQL (0.0ms) INSERT INTO "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 17:34:39.576301"], ["updated_at", "2015-12-09 17:34:39.576301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "20"], ["created_at", "2015-12-09 17:34:39.579013"], ["updated_at", "2015-12-09 17:34:39.579013"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "25"], ["created_at", "2015-12-09 17:34:39.652592"], ["updated_at", "2015-12-09 17:34:39.652592"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-09 17:34:39.656738"], ["updated_at", "2015-12-09 17:34:39.656738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 17:34:39.666315"], ["updated_at", "2015-12-09 17:34:39.666315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 SQL (0.0ms) INSERT INTO "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 17:34:39.671824"], ["updated_at", "2015-12-09 17:34:39.671824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "22"], ["created_at", "2015-12-09 17:34:39.674405"], ["updated_at", "2015-12-09 17:34:39.674405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "27"], ["created_at", "2015-12-09 17:34:39.689611"], ["updated_at", "2015-12-09 17:34:39.689611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2015-12-09 17:34:39.691843"], ["updated_at", "2015-12-09 17:34:39.691843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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 17:34:39.703122"], ["updated_at", "2015-12-09 17:34:39.703122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 SQL (0.0ms) INSERT INTO "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 17:34:39.709801"], ["updated_at", "2015-12-09 17:34:39.709801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "24"], ["created_at", "2015-12-09 17:34:39.712353"], ["updated_at", "2015-12-09 17:34:39.712353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.715047"], ["updated_at", "2015-12-09 17:34:39.715047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "29"], ["created_at", "2015-12-09 17:34:39.732324"], ["updated_at", "2015-12-09 17:34:39.732324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "8"], ["created_at", "2015-12-09 17:34:39.734832"], ["updated_at", "2015-12-09 17:34:39.734832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 SQL (0.1ms) INSERT INTO "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 17:34:39.746295"], ["updated_at", "2015-12-09 17:34:39.746295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:39.766825"], ["updated_at", "2015-12-09 17:34:39.766825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:39.782971"], ["updated_at", "2015-12-09 17:34:39.782971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.828924"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:39.834982"], ["updated_at", "2015-12-09 17:34:39.834982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.837968"], ["updated_at", "2015-12-09 17:34:39.837968"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 SQL (0.1ms) INSERT INTO "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", "2015-12-09 17:34:39.844232"], ["updated_at", "2015-12-09 17:34:39.844232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.847178"], ["updated_at", "2015-12-09 17:34:39.847178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 17:34:39.860641"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.864821"], ["updated_at", "2015-12-09 17:34:39.864821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.866711"], ["updated_at", "2015-12-09 17:34:39.866711"]]  (51.3ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.920541"], ["updated_at", "2015-12-09 17:34:39.920541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-09 17:34:39.922870"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.933897"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.0ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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)) [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_courses"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:39.945350"], ["updated_at", "2015-12-09 17:34:39.945350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.948437"], ["updated_at", "2015-12-09 17:34:39.948437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 17:34:39.960642"], ["updated_at", "2015-12-09 17:34:39.960642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.964065"], ["updated_at", "2015-12-09 17:34:39.964065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 17:34:39.971243"], ["updated_at", "2015-12-09 17:34:39.971243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.974893"], ["updated_at", "2015-12-09 17:34:39.974893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.986842"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 17:34:39.989360"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:39.997291"], ["updated_at", "2015-12-09 17:34:39.997291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 17:34:40.002313"], ["updated_at", "2015-12-09 17:34:40.002313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.007791"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:40.017743"], ["updated_at", "2015-12-09 17:34:40.017743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 17:34:40.024996"], ["updated_at", "2015-12-09 17:34:40.024996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.031221"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:40.041709"], ["updated_at", "2015-12-09 17:34:40.041709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 17:34:40.044707"], ["updated_at", "2015-12-09 17:34:40.044707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.047116"], ["updated_at", "2015-12-09 17:34:40.047116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 17:34:40.054841"], ["updated_at", "2015-12-09 17:34:40.054841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 17:34:40.059623"], ["updated_at", "2015-12-09 17:34:40.059623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.064642"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:40.076164"], ["updated_at", "2015-12-09 17:34:40.076164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.082102"], ["updated_at", "2015-12-09 17:34:40.082102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 17:34:40.090251"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.094296"], ["updated_at", "2015-12-09 17:34:40.094296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 12.5], ["updated_at", "2015-12-09 17:34:40.096560"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.099431"], ["updated_at", "2015-12-09 17:34:40.099431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.101161"], ["updated_at", "2015-12-09 17:34:40.101161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.102683"], ["updated_at", "2015-12-09 17:34:40.102683"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 25.0], ["updated_at", "2015-12-09 17:34:40.114194"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.2ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.2ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.1ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.240781"], ["updated_at", "2015-12-09 17:34:40.240781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 87.5], ["updated_at", "2015-12-09 17:34:40.242391"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-09 17:34:40.260802"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:40.273225"], ["updated_at", "2015-12-09 17:34:40.273225"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 17:34:40.276288"], ["updated_at", "2015-12-09 17:34:40.276288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.279128"], ["updated_at", "2015-12-09 17:34:40.279128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_sections"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:40.295535"], ["updated_at", "2015-12-09 17:34:40.295535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 17:34:40.298979"], ["updated_at", "2015-12-09 17:34:40.298979"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.301743"], ["updated_at", "2015-12-09 17:34:40.301743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.4ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 SQL (0.4ms) INSERT INTO "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 17:34:40.322942"], ["updated_at", "2015-12-09 17:34:40.322942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 17:34:40.327332"], ["updated_at", "2015-12-09 17:34:40.327332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.330272"], ["updated_at", "2015-12-09 17:34:40.330272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.336127"], ["updated_at", "2015-12-09 17:34:40.336127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.337957"], ["updated_at", "2015-12-09 17:34:40.337957"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.339449"], ["updated_at", "2015-12-09 17:34:40.339449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 17:34:40.359824"], ["updated_at", "2015-12-09 17:34:40.359824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 17:34:40.427898"], ["updated_at", "2015-12-09 17:34:40.427898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.433780"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.439668"], ["updated_at", "2015-12-09 17:34:40.439668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:40.450170"], ["updated_at", "2015-12-09 17:34:40.450170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 17:34:40.453150"], ["updated_at", "2015-12-09 17:34:40.453150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.455578"], ["updated_at", "2015-12-09 17:34:40.455578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignments" CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] CoalescingPanda::GroupCategory Load (0.1ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::AssignmentGroup Load (0.1ms) SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 17:34:40.476652"], ["updated_at", "2015-12-09 17:34:40.476652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 17:34:40.481856"], ["updated_at", "2015-12-09 17:34:40.481856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.486953"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.490969"], ["updated_at", "2015-12-09 17:34:40.490969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:40.499117"], ["updated_at", "2015-12-09 17:34:40.499117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 17:34:40.504544"], ["updated_at", "2015-12-09 17:34:40.504544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.509893"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.512067"], ["updated_at", "2015-12-09 17:34:40.512067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]] CoalescingPanda::Submission Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (1.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:40.563146"], ["updated_at", "2015-12-09 17:34:40.563146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 17:34:40.568338"], ["updated_at", "2015-12-09 17:34:40.568338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.575268"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.578731"], ["updated_at", "2015-12-09 17:34:40.578731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2015-12-09 17:34:40.583047"], ["updated_at", "2015-12-09 17:34:40.583047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]]  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:40.595904"], ["updated_at", "2015-12-09 17:34:40.595904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 17:34:40.600795"], ["updated_at", "2015-12-09 17:34:40.600795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.606580"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.608877"], ["updated_at", "2015-12-09 17:34:40.608877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.687508"], ["updated_at", "2015-12-09 17:34:40.687508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]]  (1.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::GroupMembership Load (0.1ms) SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 SQL (0.4ms) INSERT INTO "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 17:34:40.703328"], ["updated_at", "2015-12-09 17:34:40.703328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 17:34:40.706275"], ["updated_at", "2015-12-09 17:34:40.706275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.708560"], ["updated_at", "2015-12-09 17:34:40.708560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.2ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.733958"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.737059"], ["updated_at", "2015-12-09 17:34:40.737059"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-09 17:34:40.757908"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.1ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:40.778293"], ["updated_at", "2015-12-09 17:34:40.778293"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.783985"], ["updated_at", "2015-12-09 17:34:40.783985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.789768"], ["updated_at", "2015-12-09 17:34:40.789768"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.791630"], ["updated_at", "2015-12-09 17:34:40.791630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.793326"], ["updated_at", "2015-12-09 17:34:40.793326"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]] SQL (0.1ms) UPDATE "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))) [["coalescing_panda_course_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.8ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 SQL (0.4ms) INSERT INTO "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 17:34:40.827867"], ["updated_at", "2015-12-09 17:34:40.827867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 17:34:40.831018"], ["updated_at", "2015-12-09 17:34:40.831018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.833369"], ["updated_at", "2015-12-09 17:34:40.833369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.838936"], ["updated_at", "2015-12-09 17:34:40.838936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.840653"], ["updated_at", "2015-12-09 17:34:40.840653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.842151"], ["updated_at", "2015-12-09 17:34:40.842151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.0ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] SQL (0.1ms) DELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.7ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 17:34:40.935222"], ["updated_at", "2015-12-09 17:34:40.935222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.942468"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.945332"], ["updated_at", "2015-12-09 17:34:40.945332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-09 17:34:40.964921"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:40.983955"], ["updated_at", "2015-12-09 17:34:40.983955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 17:34:40.987041"], ["updated_at", "2015-12-09 17:34:40.987041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.989787"], ["updated_at", "2015-12-09 17:34:40.989787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 17:34:41.004460"], ["updated_at", "2015-12-09 17:34:41.004460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.009327"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:41.019560"], ["updated_at", "2015-12-09 17:34:41.019560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.027286"], ["updated_at", "2015-12-09 17:34:41.027286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.046599"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:41.057290"], ["updated_at", "2015-12-09 17:34:41.057290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.063147"], ["updated_at", "2015-12-09 17:34:41.063147"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.082869"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 SQL (0.3ms) INSERT INTO "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 17:34:41.093718"], ["updated_at", "2015-12-09 17:34:41.093718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.099352"], ["updated_at", "2015-12-09 17:34:41.099352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1 SQL (0.7ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.123566"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 SQL (0.2ms) INSERT INTO "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 17:34:41.187595"], ["updated_at", "2015-12-09 17:34:41.187595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.198506"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 17:34:41.202403"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.5ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 SQL (0.8ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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"]]  (0.1ms) 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"} CoalescingPanda::LtiAccount Load (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.5ms) 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  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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) CoalescingPanda::CanvasApiAuth Load (0.1ms) 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"]]  (0.7ms) rollback transaction  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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.255639"], ["updated_at", "2015-12-09 19:42:12.255639"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.2ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.2ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.5ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 19:42:12.304692"], ["updated_at", "2015-12-09 19:42:12.304692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:12.318805"], ["updated_at", "2015-12-09 19:42:12.318805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 SQL (0.6ms) INSERT INTO "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:42:12.343149"], ["updated_at", "2015-12-09 19:42:12.343149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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.347906"], ["updated_at", "2015-12-09 19:42:12.347906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "11"], ["created_at", "2015-12-09 19:42:12.353651"], ["updated_at", "2015-12-09 19:42:12.353651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 SQL (0.2ms) INSERT INTO "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:42:12.359311"], ["updated_at", "2015-12-09 19:42:12.359311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 SQL (0.0ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 SQL (0.0ms) INSERT INTO "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:42:12.458731"], ["updated_at", "2015-12-09 19:42:12.458731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "10"], ["created_at", "2015-12-09 19:42:12.461568"], ["updated_at", "2015-12-09 19:42:12.461568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "15"], ["created_at", "2015-12-09 19:42:12.481371"], ["updated_at", "2015-12-09 19:42:12.481371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2"], ["created_at", "2015-12-09 19:42:12.483799"], ["updated_at", "2015-12-09 19:42:12.483799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:42:12.490749"], ["updated_at", "2015-12-09 19:42:12.490749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 SQL (0.0ms) INSERT INTO "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:42:12.495713"], ["updated_at", "2015-12-09 19:42:12.495713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "12"], ["created_at", "2015-12-09 19:42:12.498363"], ["updated_at", "2015-12-09 19:42:12.498363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "17"], ["created_at", "2015-12-09 19:42:12.513789"], ["updated_at", "2015-12-09 19:42:12.513789"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-09 19:42:12.517511"], ["updated_at", "2015-12-09 19:42:12.517511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:42:12.532471"], ["updated_at", "2015-12-09 19:42:12.532471"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 SQL (0.0ms) INSERT INTO "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:42:12.537854"], ["updated_at", "2015-12-09 19:42:12.537854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "14"], ["created_at", "2015-12-09 19:42:12.540371"], ["updated_at", "2015-12-09 19:42:12.540371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:42:12.543015"], ["updated_at", "2015-12-09 19:42:12.543015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "19"], ["created_at", "2015-12-09 19:42:12.558946"], ["updated_at", "2015-12-09 19:42:12.558946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2015-12-09 19:42:12.561377"], ["updated_at", "2015-12-09 19:42:12.561377"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:12.580850"], ["updated_at", "2015-12-09 19:42:12.580850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:12.592873"], ["updated_at", "2015-12-09 19:42:12.592873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:12.603817"], ["updated_at", "2015-12-09 19:42:12.603817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 SQL (0.4ms) INSERT INTO "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:42:12.618435"], ["updated_at", "2015-12-09 19:42:12.618435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:42:12.636175"], ["updated_at", "2015-12-09 19:42:12.636175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 SQL (0.1ms) INSERT INTO "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:42:12.642276"], ["updated_at", "2015-12-09 19:42:12.642276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "20"], ["created_at", "2015-12-09 19:42:12.644892"], ["updated_at", "2015-12-09 19:42:12.644892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "25"], ["created_at", "2015-12-09 19:42:12.725060"], ["updated_at", "2015-12-09 19:42:12.725060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-09 19:42:12.727289"], ["updated_at", "2015-12-09 19:42:12.727289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:42:12.735138"], ["updated_at", "2015-12-09 19:42:12.735138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 SQL (0.0ms) INSERT INTO "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:42:12.740716"], ["updated_at", "2015-12-09 19:42:12.740716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "22"], ["created_at", "2015-12-09 19:42:12.743320"], ["updated_at", "2015-12-09 19:42:12.743320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "27"], ["created_at", "2015-12-09 19:42:12.758468"], ["updated_at", "2015-12-09 19:42:12.758468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2015-12-09 19:42:12.760676"], ["updated_at", "2015-12-09 19:42:12.760676"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:42:12.775043"], ["updated_at", "2015-12-09 19:42:12.775043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 SQL (0.1ms) INSERT INTO "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:42:12.782239"], ["updated_at", "2015-12-09 19:42:12.782239"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "24"], ["created_at", "2015-12-09 19:42:12.787069"], ["updated_at", "2015-12-09 19:42:12.787069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.790373"], ["updated_at", "2015-12-09 19:42:12.790373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "29"], ["created_at", "2015-12-09 19:42:12.805427"], ["updated_at", "2015-12-09 19:42:12.805427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "8"], ["created_at", "2015-12-09 19:42:12.807639"], ["updated_at", "2015-12-09 19:42:12.807639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 SQL (0.2ms) INSERT INTO "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:42:12.821976"], ["updated_at", "2015-12-09 19:42:12.821976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 SQL (0.2ms) INSERT INTO "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:42:12.841420"], ["updated_at", "2015-12-09 19:42:12.841420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:12.854734"], ["updated_at", "2015-12-09 19:42:12.854734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.881040"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 SQL (0.2ms) INSERT INTO "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:42:12.888149"], ["updated_at", "2015-12-09 19:42:12.888149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.891452"], ["updated_at", "2015-12-09 19:42:12.891452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 19:42:12.898023"], ["updated_at", "2015-12-09 19:42:12.898023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.901297"], ["updated_at", "2015-12-09 19:42:12.901297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:42:12.914773"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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:12.918972"], ["updated_at", "2015-12-09 19:42:12.918972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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:12.921018"], ["updated_at", "2015-12-09 19:42:12.921018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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:12.979584"], ["updated_at", "2015-12-09 19:42:12.979584"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:42:12.982236"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.992678"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.0ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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)) [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_courses"  (0.6ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 SQL (0.2ms) INSERT INTO "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:42:13.004290"], ["updated_at", "2015-12-09 19:42:13.004290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.007479"], ["updated_at", "2015-12-09 19:42:13.007479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 19:42:13.020572"], ["updated_at", "2015-12-09 19:42:13.020572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.023953"], ["updated_at", "2015-12-09 19:42:13.023953"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 SQL (0.1ms) INSERT INTO "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", "2015-12-09 19:42:13.031050"], ["updated_at", "2015-12-09 19:42:13.031050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.034543"], ["updated_at", "2015-12-09 19:42:13.034543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.046825"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:42:13.049597"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 SQL (0.2ms) INSERT INTO "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:42:13.057952"], ["updated_at", "2015-12-09 19:42:13.057952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:42:13.062746"], ["updated_at", "2015-12-09 19:42:13.062746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.067772"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 SQL (0.2ms) INSERT INTO "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:42:13.075223"], ["updated_at", "2015-12-09 19:42:13.075223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1 SQL (0.5ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:42:13.081504"], ["updated_at", "2015-12-09 19:42:13.081504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.088163"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:13.097568"], ["updated_at", "2015-12-09 19:42:13.097568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:42:13.100519"], ["updated_at", "2015-12-09 19:42:13.100519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.103536"], ["updated_at", "2015-12-09 19:42:13.103536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 19:42:13.114169"], ["updated_at", "2015-12-09 19:42:13.114169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:42:13.119204"], ["updated_at", "2015-12-09 19:42:13.119204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.124207"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:13.135156"], ["updated_at", "2015-12-09 19:42:13.135156"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.143799"], ["updated_at", "2015-12-09 19:42:13.143799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:42:13.153067"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.157870"], ["updated_at", "2015-12-09 19:42:13.157870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 12.5], ["updated_at", "2015-12-09 19:42:13.160173"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.162835"], ["updated_at", "2015-12-09 19:42:13.162835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.164505"], ["updated_at", "2015-12-09 19:42:13.164505"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.166260"], ["updated_at", "2015-12-09 19:42:13.166260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 25.0], ["updated_at", "2015-12-09 19:42:13.176408"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.3ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.2ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.6ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (1.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.1ms) 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"]] CoalescingPanda::GroupCategory Load (0.4ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.4ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.296719"], ["updated_at", "2015-12-09 19:42:13.296719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 87.5], ["updated_at", "2015-12-09 19:42:13.298441"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::GroupMembership Load (0.5ms) 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"]] CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:42:13.319299"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 SQL (0.2ms) INSERT INTO "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:42:13.331419"], ["updated_at", "2015-12-09 19:42:13.331419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:42:13.334344"], ["updated_at", "2015-12-09 19:42:13.334344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.336680"], ["updated_at", "2015-12-09 19:42:13.336680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_sections"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:13.349949"], ["updated_at", "2015-12-09 19:42:13.349949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:42:13.352733"], ["updated_at", "2015-12-09 19:42:13.352733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.355170"], ["updated_at", "2015-12-09 19:42:13.355170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:13.374560"], ["updated_at", "2015-12-09 19:42:13.374560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:42:13.377910"], ["updated_at", "2015-12-09 19:42:13.377910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.380427"], ["updated_at", "2015-12-09 19:42:13.380427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.386085"], ["updated_at", "2015-12-09 19:42:13.386085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.387830"], ["updated_at", "2015-12-09 19:42:13.387830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.389336"], ["updated_at", "2015-12-09 19:42:13.389336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1  (1.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 19:42:13.410195"], ["updated_at", "2015-12-09 19:42:13.410195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:42:13.471652"], ["updated_at", "2015-12-09 19:42:13.471652"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.477277"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.483415"], ["updated_at", "2015-12-09 19:42:13.483415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (0.7ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:13.495474"], ["updated_at", "2015-12-09 19:42:13.495474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:42:13.498504"], ["updated_at", "2015-12-09 19:42:13.498504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.500973"], ["updated_at", "2015-12-09 19:42:13.500973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignments" CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] CoalescingPanda::GroupCategory Load (0.1ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::AssignmentGroup Load (0.1ms) SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 19:42:13.524405"], ["updated_at", "2015-12-09 19:42:13.524405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:42:13.529252"], ["updated_at", "2015-12-09 19:42:13.529252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.534352"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.537545"], ["updated_at", "2015-12-09 19:42:13.537545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 SQL (0.1ms) INSERT INTO "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:42:13.544868"], ["updated_at", "2015-12-09 19:42:13.544868"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:42:13.549334"], ["updated_at", "2015-12-09 19:42:13.549334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.554353"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.556395"], ["updated_at", "2015-12-09 19:42:13.556395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.2ms) 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]] CoalescingPanda::Submission Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 SQL (0.2ms) INSERT INTO "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:42:13.605020"], ["updated_at", "2015-12-09 19:42:13.605020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:42:13.609644"], ["updated_at", "2015-12-09 19:42:13.609644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.614490"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.616524"], ["updated_at", "2015-12-09 19:42:13.616524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2015-12-09 19:42:13.619831"], ["updated_at", "2015-12-09 19:42:13.619831"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]]  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 SQL (0.2ms) INSERT INTO "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:42:13.629937"], ["updated_at", "2015-12-09 19:42:13.629937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:42:13.634534"], ["updated_at", "2015-12-09 19:42:13.634534"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.640579"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.643483"], ["updated_at", "2015-12-09 19:42:13.643483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.721393"], ["updated_at", "2015-12-09 19:42:13.721393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]]  (1.8ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::GroupMembership Load (0.1ms) SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:13.736682"], ["updated_at", "2015-12-09 19:42:13.736682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:42:13.739588"], ["updated_at", "2015-12-09 19:42:13.739588"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.741933"], ["updated_at", "2015-12-09 19:42:13.741933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.765639"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.767935"], ["updated_at", "2015-12-09 19:42:13.767935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-09 19:42:13.791657"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.1ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:13.810604"], ["updated_at", "2015-12-09 19:42:13.810604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.815826"], ["updated_at", "2015-12-09 19:42:13.815826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.821161"], ["updated_at", "2015-12-09 19:42:13.821161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.823188"], ["updated_at", "2015-12-09 19:42:13.823188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.824689"], ["updated_at", "2015-12-09 19:42:13.824689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]] SQL (0.2ms) UPDATE "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))) [["coalescing_panda_course_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:13.860146"], ["updated_at", "2015-12-09 19:42:13.860146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:42:13.863036"], ["updated_at", "2015-12-09 19:42:13.863036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.865287"], ["updated_at", "2015-12-09 19:42:13.865287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.870767"], ["updated_at", "2015-12-09 19:42:13.870767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.872243"], ["updated_at", "2015-12-09 19:42:13.872243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.873669"], ["updated_at", "2015-12-09 19:42:13.873669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.0ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] SQL (0.1ms) DELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.6ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:42:13.969569"], ["updated_at", "2015-12-09 19:42:13.969569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.975741"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.978642"], ["updated_at", "2015-12-09 19:42:13.978642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-09 19:42:13.998906"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:14.022129"], ["updated_at", "2015-12-09 19:42:14.022129"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:42:14.026398"], ["updated_at", "2015-12-09 19:42:14.026398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.029110"], ["updated_at", "2015-12-09 19:42:14.029110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:42:14.041968"], ["updated_at", "2015-12-09 19:42:14.041968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.046875"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:14.057963"], ["updated_at", "2015-12-09 19:42:14.057963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.063380"], ["updated_at", "2015-12-09 19:42:14.063380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.081822"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 SQL (0.4ms) INSERT INTO "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:42:14.093365"], ["updated_at", "2015-12-09 19:42:14.093365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.099690"], ["updated_at", "2015-12-09 19:42:14.099690"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.122254"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 SQL (0.3ms) INSERT INTO "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:42:14.133129"], ["updated_at", "2015-12-09 19:42:14.133129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.139635"], ["updated_at", "2015-12-09 19:42:14.139635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1 SQL (0.5ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.163665"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 SQL (0.2ms) INSERT INTO "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:42:14.232160"], ["updated_at", "2015-12-09 19:42:14.232160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.241844"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:42:14.245731"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.6ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 SQL (1.0ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) 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"]]  (0.0ms) 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"} CoalescingPanda::LtiAccount Load (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.4ms) 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  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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) CoalescingPanda::CanvasApiAuth Load (0.1ms) 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"]]  (0.5ms) rollback transaction  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 SQL (0.4ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.159681"], ["updated_at", "2015-12-09 19:45:21.159681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.3ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.1ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 19:45:21.213605"], ["updated_at", "2015-12-09 19:45:21.213605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1 SQL (0.1ms) INSERT INTO "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:21.237044"], ["updated_at", "2015-12-09 19:45:21.237044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1 SQL (0.3ms) INSERT INTO "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:21.253954"], ["updated_at", "2015-12-09 19:45:21.253954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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.258208"], ["updated_at", "2015-12-09 19:45:21.258208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "11"], ["created_at", "2015-12-09 19:45:21.264308"], ["updated_at", "2015-12-09 19:45:21.264308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 SQL (0.4ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1 SQL (0.3ms) INSERT INTO "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:21.289841"], ["updated_at", "2015-12-09 19:45:21.289841"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21.359257"], ["updated_at", "2015-12-09 19:45:21.359257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 SQL (0.0ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "10"], ["created_at", "2015-12-09 19:45:21.373742"], ["updated_at", "2015-12-09 19:45:21.373742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1 SQL (0.1ms) INSERT INTO "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:21.388419"], ["updated_at", "2015-12-09 19:45:21.388419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "15"], ["created_at", "2015-12-09 19:45:21.393479"], ["updated_at", "2015-12-09 19:45:21.393479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2"], ["created_at", "2015-12-09 19:45:21.395749"], ["updated_at", "2015-12-09 19:45:21.395749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21.403102"], ["updated_at", "2015-12-09 19:45:21.403102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 SQL (0.0ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "12"], ["created_at", "2015-12-09 19:45:21.411114"], ["updated_at", "2015-12-09 19:45:21.411114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1 SQL (0.1ms) INSERT INTO "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:21.421497"], ["updated_at", "2015-12-09 19:45:21.421497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "17"], ["created_at", "2015-12-09 19:45:21.426536"], ["updated_at", "2015-12-09 19:45:21.426536"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-09 19:45:21.430265"], ["updated_at", "2015-12-09 19:45:21.430265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "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 (?, ?, ?, ?, ?, ?)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21.446089"], ["updated_at", "2015-12-09 19:45:21.446089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "14"], ["created_at", "2015-12-09 19:45:21.456550"], ["updated_at", "2015-12-09 19:45:21.456550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:45:21.459942"], ["updated_at", "2015-12-09 19:45:21.459942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1 SQL (0.1ms) INSERT INTO "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:21.472006"], ["updated_at", "2015-12-09 19:45:21.472006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "19"], ["created_at", "2015-12-09 19:45:21.477472"], ["updated_at", "2015-12-09 19:45:21.477472"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2015-12-09 19:45:21.480170"], ["updated_at", "2015-12-09 19:45:21.480170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1 SQL (0.4ms) INSERT INTO "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:21.497346"], ["updated_at", "2015-12-09 19:45:21.497346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1 SQL (0.3ms) INSERT INTO "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:21.509529"], ["updated_at", "2015-12-09 19:45:21.509529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1 SQL (0.3ms) INSERT INTO "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:21.519984"], ["updated_at", "2015-12-09 19:45:21.519984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1 SQL (0.3ms) INSERT INTO "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:21.534324"], ["updated_at", "2015-12-09 19:45:21.534324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21.552283"], ["updated_at", "2015-12-09 19:45:21.552283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "20"], ["created_at", "2015-12-09 19:45:21.613208"], ["updated_at", "2015-12-09 19:45:21.613208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1 SQL (0.1ms) INSERT INTO "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:21.629143"], ["updated_at", "2015-12-09 19:45:21.629143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "25"], ["created_at", "2015-12-09 19:45:21.633498"], ["updated_at", "2015-12-09 19:45:21.633498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-09 19:45:21.635671"], ["updated_at", "2015-12-09 19:45:21.635671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21.643509"], ["updated_at", "2015-12-09 19:45:21.643509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 SQL (0.0ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "22"], ["created_at", "2015-12-09 19:45:21.651357"], ["updated_at", "2015-12-09 19:45:21.651357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1 SQL (0.1ms) INSERT INTO "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:21.665078"], ["updated_at", "2015-12-09 19:45:21.665078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "27"], ["created_at", "2015-12-09 19:45:21.670204"], ["updated_at", "2015-12-09 19:45:21.670204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2015-12-09 19:45:21.672579"], ["updated_at", "2015-12-09 19:45:21.672579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:21.684871"], ["updated_at", "2015-12-09 19:45:21.684871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 SQL (0.0ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "24"], ["created_at", "2015-12-09 19:45:21.693465"], ["updated_at", "2015-12-09 19:45:21.693465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.696400"], ["updated_at", "2015-12-09 19:45:21.696400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1 SQL (0.4ms) INSERT INTO "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:21.707651"], ["updated_at", "2015-12-09 19:45:21.707651"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "29"], ["created_at", "2015-12-09 19:45:21.714643"], ["updated_at", "2015-12-09 19:45:21.714643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "8"], ["created_at", "2015-12-09 19:45:21.717398"], ["updated_at", "2015-12-09 19:45:21.717398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1 SQL (0.2ms) INSERT INTO "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:21.730972"], ["updated_at", "2015-12-09 19:45:21.730972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1 SQL (0.2ms) INSERT INTO "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:21.750458"], ["updated_at", "2015-12-09 19:45:21.750458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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:21.758851"], ["updated_at", "2015-12-09 19:45:21.758851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1 SQL (0.2ms) INSERT INTO "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:21.765545"], ["updated_at", "2015-12-09 19:45:21.765545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.788903"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 19:45:21.796177"], ["updated_at", "2015-12-09 19:45:21.796177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.799631"], ["updated_at", "2015-12-09 19:45:21.799631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1 SQL (0.2ms) INSERT INTO "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:21.805904"], ["updated_at", "2015-12-09 19:45:21.805904"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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.810296"], ["updated_at", "2015-12-09 19:45:21.810296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:45:21.880319"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.884832"], ["updated_at", "2015-12-09 19:45:21.884832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.886641"], ["updated_at", "2015-12-09 19:45:21.886641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.888167"], ["updated_at", "2015-12-09 19:45:21.888167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:45:21.890323"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.901046"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.0ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.2ms) SELECT "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)) [["coalescing_panda_lti_account_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_courses"  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 19:45:21.915079"], ["updated_at", "2015-12-09 19:45:21.915079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "coalescing_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.918920"], ["updated_at", "2015-12-09 19:45:21.918920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 19:45:21.933806"], ["updated_at", "2015-12-09 19:45:21.933806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.936865"], ["updated_at", "2015-12-09 19:45:21.936865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1 SQL (0.2ms) INSERT INTO "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:21.944118"], ["updated_at", "2015-12-09 19:45:21.944118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.947227"], ["updated_at", "2015-12-09 19:45:21.947227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.958897"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:45:21.961923"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1 SQL (0.2ms) INSERT INTO "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:21.970362"], ["updated_at", "2015-12-09 19:45:21.970362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:21.975640"], ["updated_at", "2015-12-09 19:45:21.975640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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:21.981288"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1 SQL (0.2ms) INSERT INTO "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:21.988349"], ["updated_at", "2015-12-09 19:45:21.988349"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:21.994482"], ["updated_at", "2015-12-09 19:45:21.994482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.000324"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 SQL (0.4ms) INSERT INTO "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", "2015-12-09 19:45:22.012283"], ["updated_at", "2015-12-09 19:45:22.012283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:22.017011"], ["updated_at", "2015-12-09 19:45:22.017011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.020785"], ["updated_at", "2015-12-09 19:45:22.020785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1 SQL (0.2ms) INSERT INTO "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:22.030623"], ["updated_at", "2015-12-09 19:45:22.030623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:22.035134"], ["updated_at", "2015-12-09 19:45:22.035134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.040002"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1 SQL (0.4ms) INSERT INTO "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:22.054561"], ["updated_at", "2015-12-09 19:45:22.054561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.062200"], ["updated_at", "2015-12-09 19:45:22.062200"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:45:22.072647"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.078254"], ["updated_at", "2015-12-09 19:45:22.078254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 12.5], ["updated_at", "2015-12-09 19:45:22.080925"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.083847"], ["updated_at", "2015-12-09 19:45:22.083847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.085586"], ["updated_at", "2015-12-09 19:45:22.085586"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.087412"], ["updated_at", "2015-12-09 19:45:22.087412"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 25.0], ["updated_at", "2015-12-09 19:45:22.100317"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.2ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.6ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.1ms) 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"]] CoalescingPanda::GroupCategory Load (0.4ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.4ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.218491"], ["updated_at", "2015-12-09 19:45:22.218491"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 87.5], ["updated_at", "2015-12-09 19:45:22.220187"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::GroupMembership Load (0.5ms) 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"]] CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:45:22.240966"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1 SQL (0.4ms) INSERT INTO "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:22.253145"], ["updated_at", "2015-12-09 19:45:22.253145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:22.256294"], ["updated_at", "2015-12-09 19:45:22.256294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.258990"], ["updated_at", "2015-12-09 19:45:22.258990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_sections"  (0.9ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1 SQL (0.3ms) INSERT INTO "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:22.275497"], ["updated_at", "2015-12-09 19:45:22.275497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:22.278496"], ["updated_at", "2015-12-09 19:45:22.278496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.280981"], ["updated_at", "2015-12-09 19:45:22.280981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.7ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2015-12-09 19:45:22.299151"], ["updated_at", "2015-12-09 19:45:22.299151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:22.302380"], ["updated_at", "2015-12-09 19:45:22.302380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.304720"], ["updated_at", "2015-12-09 19:45:22.304720"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.311839"], ["updated_at", "2015-12-09 19:45:22.311839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.313593"], ["updated_at", "2015-12-09 19:45:22.313593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.315191"], ["updated_at", "2015-12-09 19:45:22.315191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1 SQL (0.2ms) INSERT INTO "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:22.394669"], ["updated_at", "2015-12-09 19:45:22.394669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:22.399373"], ["updated_at", "2015-12-09 19:45:22.399373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.404179"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.1ms) 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.411200"], ["updated_at", "2015-12-09 19:45:22.411200"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (0.8ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Assignment Load (0.2ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2015-12-09 19:45:22.424296"], ["updated_at", "2015-12-09 19:45:22.424296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:22.427339"], ["updated_at", "2015-12-09 19:45:22.427339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.429718"], ["updated_at", "2015-12-09 19:45:22.429718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignments" CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] CoalescingPanda::GroupCategory Load (0.1ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::AssignmentGroup Load (0.1ms) SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1 SQL (0.3ms) INSERT INTO "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:22.451476"], ["updated_at", "2015-12-09 19:45:22.451476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:22.456636"], ["updated_at", "2015-12-09 19:45:22.456636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.463466"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.465566"], ["updated_at", "2015-12-09 19:45:22.465566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1 SQL (0.2ms) INSERT INTO "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:22.473067"], ["updated_at", "2015-12-09 19:45:22.473067"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:22.478480"], ["updated_at", "2015-12-09 19:45:22.478480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.483528"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.485637"], ["updated_at", "2015-12-09 19:45:22.485637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]] CoalescingPanda::Submission Load (0.2ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (1.2ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1 SQL (0.2ms) INSERT INTO "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:22.537188"], ["updated_at", "2015-12-09 19:45:22.537188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 SQL (0.5ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:22.544885"], ["updated_at", "2015-12-09 19:45:22.544885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.551172"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.553826"], ["updated_at", "2015-12-09 19:45:22.553826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2015-12-09 19:45:22.557696"], ["updated_at", "2015-12-09 19:45:22.557696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Group Load (0.2ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1 SQL (0.2ms) INSERT INTO "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:22.571635"], ["updated_at", "2015-12-09 19:45:22.571635"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:22.578751"], ["updated_at", "2015-12-09 19:45:22.578751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.584200"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.638540"], ["updated_at", "2015-12-09 19:45:22.638540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.660406"], ["updated_at", "2015-12-09 19:45:22.660406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]]  (1.5ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::GroupMembership Load (0.1ms) SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:22.680576"], ["updated_at", "2015-12-09 19:45:22.680576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.683775"], ["updated_at", "2015-12-09 19:45:22.683775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1 SQL (0.2ms) INSERT INTO "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:22.698963"], ["updated_at", "2015-12-09 19:45:22.698963"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.711827"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.714381"], ["updated_at", "2015-12-09 19:45:22.714381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-09 19:45:22.733886"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.1ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.9ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1 SQL (0.3ms) INSERT INTO "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:22.755813"], ["updated_at", "2015-12-09 19:45:22.755813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.761201"], ["updated_at", "2015-12-09 19:45:22.761201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.766559"], ["updated_at", "2015-12-09 19:45:22.766559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.768388"], ["updated_at", "2015-12-09 19:45:22.768388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.770846"], ["updated_at", "2015-12-09 19:45:22.770846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]] SQL (0.1ms) UPDATE "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))) [["coalescing_panda_course_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:22.813214"], ["updated_at", "2015-12-09 19:45:22.813214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.815705"], ["updated_at", "2015-12-09 19:45:22.815705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.821216"], ["updated_at", "2015-12-09 19:45:22.821216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.823058"], ["updated_at", "2015-12-09 19:45:22.823058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.824543"], ["updated_at", "2015-12-09 19:45:22.824543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.0ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] SQL (0.1ms) DELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.3ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1 SQL (0.3ms) INSERT INTO "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:22.914153"], ["updated_at", "2015-12-09 19:45:22.914153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:22.919123"], ["updated_at", "2015-12-09 19:45:22.919123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.924551"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.927503"], ["updated_at", "2015-12-09 19:45:22.927503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-09 19:45:22.949507"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:22.971038"], ["updated_at", "2015-12-09 19:45:22.971038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.973527"], ["updated_at", "2015-12-09 19:45:22.973527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1 SQL (0.2ms) INSERT INTO "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:22.982626"], ["updated_at", "2015-12-09 19:45:22.982626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:22.987784"], ["updated_at", "2015-12-09 19:45:22.987784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.994343"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 SQL (0.4ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.014653"], ["updated_at", "2015-12-09 19:45:23.014653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1 SQL (0.2ms) INSERT INTO "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:23.023854"], ["updated_at", "2015-12-09 19:45:23.023854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.033492"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.050222"], ["updated_at", "2015-12-09 19:45:23.050222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1 SQL (0.2ms) INSERT INTO "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:23.059696"], ["updated_at", "2015-12-09 19:45:23.059696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.069674"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.086143"], ["updated_at", "2015-12-09 19:45:23.086143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1 SQL (0.2ms) INSERT INTO "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:23.094590"], ["updated_at", "2015-12-09 19:45:23.094590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.163254"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1 SQL (0.2ms) INSERT INTO "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:23.172450"], ["updated_at", "2015-12-09 19:45:23.172450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 143' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 143' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.183311"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:45:23.187283"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) 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"]]  (0.0ms) 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"} CoalescingPanda::LtiAccount Load (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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) CoalescingPanda::CanvasApiAuth Load (0.1ms) 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"]]  (1.0ms) rollback transaction  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.705641"], ["updated_at", "2015-12-09 19:45:44.705641"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.3ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.2ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "api_domain", "api_token", "refresh_token", "expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 19:45:44.756106"], ["updated_at", "2015-12-09 19:45:44.756106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 SQL (0.3ms) INSERT INTO "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:44.771057"], ["updated_at", "2015-12-09 19:45:44.771057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 SQL (0.3ms) INSERT INTO "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:44.792715"], ["updated_at", "2015-12-09 19:45:44.792715"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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.796640"], ["updated_at", "2015-12-09 19:45:44.796640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "11"], ["created_at", "2015-12-09 19:45:44.801608"], ["updated_at", "2015-12-09 19:45:44.801608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 SQL (0.2ms) INSERT INTO "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:44.806983"], ["updated_at", "2015-12-09 19:45:44.806983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 SQL (0.0ms) INSERT INTO "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:44.906830"], ["updated_at", "2015-12-09 19:45:44.906830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "10"], ["created_at", "2015-12-09 19:45:44.909410"], ["updated_at", "2015-12-09 19:45:44.909410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "15"], ["created_at", "2015-12-09 19:45:44.928703"], ["updated_at", "2015-12-09 19:45:44.928703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2"], ["created_at", "2015-12-09 19:45:44.931205"], ["updated_at", "2015-12-09 19:45:44.931205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:44.938819"], ["updated_at", "2015-12-09 19:45:44.938819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 SQL (0.0ms) INSERT INTO "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:44.944134"], ["updated_at", "2015-12-09 19:45:44.944134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "12"], ["created_at", "2015-12-09 19:45:44.946746"], ["updated_at", "2015-12-09 19:45:44.946746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "17"], ["created_at", "2015-12-09 19:45:44.962925"], ["updated_at", "2015-12-09 19:45:44.962925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-09 19:45:44.965258"], ["updated_at", "2015-12-09 19:45:44.965258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:44.976372"], ["updated_at", "2015-12-09 19:45:44.976372"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 SQL (0.0ms) INSERT INTO "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:44.982186"], ["updated_at", "2015-12-09 19:45:44.982186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "14"], ["created_at", "2015-12-09 19:45:44.984849"], ["updated_at", "2015-12-09 19:45:44.984849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 19:45:44.987734"], ["updated_at", "2015-12-09 19:45:44.987734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "19"], ["created_at", "2015-12-09 19:45:45.004080"], ["updated_at", "2015-12-09 19:45:45.004080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2015-12-09 19:45:45.006473"], ["updated_at", "2015-12-09 19:45:45.006473"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.023089"], ["updated_at", "2015-12-09 19:45:45.023089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.036151"], ["updated_at", "2015-12-09 19:45:45.036151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 SQL (0.3ms) INSERT INTO "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:45.047904"], ["updated_at", "2015-12-09 19:45:45.047904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 SQL (0.3ms) INSERT INTO "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:45.062261"], ["updated_at", "2015-12-09 19:45:45.062261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:45.081021"], ["updated_at", "2015-12-09 19:45:45.081021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 SQL (0.0ms) INSERT INTO "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:45.088485"], ["updated_at", "2015-12-09 19:45:45.088485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "20"], ["created_at", "2015-12-09 19:45:45.091382"], ["updated_at", "2015-12-09 19:45:45.091382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "25"], ["created_at", "2015-12-09 19:45:45.164682"], ["updated_at", "2015-12-09 19:45:45.164682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-09 19:45:45.167563"], ["updated_at", "2015-12-09 19:45:45.167563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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:45.175978"], ["updated_at", "2015-12-09 19:45:45.175978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 SQL (0.0ms) INSERT INTO "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:45.182512"], ["updated_at", "2015-12-09 19:45:45.182512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "22"], ["created_at", "2015-12-09 19:45:45.185743"], ["updated_at", "2015-12-09 19:45:45.185743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "27"], ["created_at", "2015-12-09 19:45:45.201587"], ["updated_at", "2015-12-09 19:45:45.201587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2015-12-09 19:45:45.203902"], ["updated_at", "2015-12-09 19:45:45.203902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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:45.214442"], ["updated_at", "2015-12-09 19:45:45.214442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 SQL (0.1ms) INSERT INTO "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:45.222751"], ["updated_at", "2015-12-09 19:45:45.222751"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "24"], ["created_at", "2015-12-09 19:45:45.226743"], ["updated_at", "2015-12-09 19:45:45.226743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.229877"], ["updated_at", "2015-12-09 19:45:45.229877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "29"], ["created_at", "2015-12-09 19:45:45.245411"], ["updated_at", "2015-12-09 19:45:45.245411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "8"], ["created_at", "2015-12-09 19:45:45.248162"], ["updated_at", "2015-12-09 19:45:45.248162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.260267"], ["updated_at", "2015-12-09 19:45:45.260267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 SQL (0.1ms) INSERT INTO "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:45.279602"], ["updated_at", "2015-12-09 19:45:45.279602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.292444"], ["updated_at", "2015-12-09 19:45:45.292444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.313670"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.320031"], ["updated_at", "2015-12-09 19:45:45.320031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.323038"], ["updated_at", "2015-12-09 19:45:45.323038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 19:45:45.329109"], ["updated_at", "2015-12-09 19:45:45.329109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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.332240"], ["updated_at", "2015-12-09 19:45:45.332240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:45:45.345585"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.405413"], ["updated_at", "2015-12-09 19:45:45.405413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.407570"], ["updated_at", "2015-12-09 19:45:45.407570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.409156"], ["updated_at", "2015-12-09 19:45:45.409156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:45:45.411253"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.422264"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.0ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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)) [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_courses"  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.433988"], ["updated_at", "2015-12-09 19:45:45.433988"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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.437151"], ["updated_at", "2015-12-09 19:45:45.437151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 19:45:45.449314"], ["updated_at", "2015-12-09 19:45:45.449314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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.452726"], ["updated_at", "2015-12-09 19:45:45.452726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2015-12-09 19:45:45.459006"], ["updated_at", "2015-12-09 19:45:45.459006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.463234"], ["updated_at", "2015-12-09 19:45:45.463234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.477208"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:45:45.480273"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.488215"], ["updated_at", "2015-12-09 19:45:45.488215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:45.492955"], ["updated_at", "2015-12-09 19:45:45.492955"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.500453"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 SQL (0.3ms) INSERT INTO "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:45.510014"], ["updated_at", "2015-12-09 19:45:45.510014"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:45.518058"], ["updated_at", "2015-12-09 19:45:45.518058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.523419"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.533518"], ["updated_at", "2015-12-09 19:45:45.533518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:45.536544"], ["updated_at", "2015-12-09 19:45:45.536544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.538999"], ["updated_at", "2015-12-09 19:45:45.538999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2015-12-09 19:45:45.547416"], ["updated_at", "2015-12-09 19:45:45.547416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:45.553669"], ["updated_at", "2015-12-09 19:45:45.553669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.559999"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.571920"], ["updated_at", "2015-12-09 19:45:45.571920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.577312"], ["updated_at", "2015-12-09 19:45:45.577312"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:45:45.585566"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.589574"], ["updated_at", "2015-12-09 19:45:45.589574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 12.5], ["updated_at", "2015-12-09 19:45:45.591905"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.594738"], ["updated_at", "2015-12-09 19:45:45.594738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.596705"], ["updated_at", "2015-12-09 19:45:45.596705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.598341"], ["updated_at", "2015-12-09 19:45:45.598341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 25.0], ["updated_at", "2015-12-09 19:45:45.606582"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.2ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.1ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.2ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:45.723980"], ["updated_at", "2015-12-09 19:45:45.723980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 87.5], ["updated_at", "2015-12-09 19:45:45.725619"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::GroupMembership Load (0.2ms) 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"]] CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-09 19:45:45.744658"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.757841"], ["updated_at", "2015-12-09 19:45:45.757841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:45.760980"], ["updated_at", "2015-12-09 19:45:45.760980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.763407"], ["updated_at", "2015-12-09 19:45:45.763407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_sections"  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.777974"], ["updated_at", "2015-12-09 19:45:45.777974"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:45.780754"], ["updated_at", "2015-12-09 19:45:45.780754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.783229"], ["updated_at", "2015-12-09 19:45:45.783229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.8ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 SQL (0.2ms) INSERT INTO "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:45.801507"], ["updated_at", "2015-12-09 19:45:45.801507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:45.804412"], ["updated_at", "2015-12-09 19:45:45.804412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.806767"], ["updated_at", "2015-12-09 19:45:45.806767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.812432"], ["updated_at", "2015-12-09 19:45:45.812432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.813983"], ["updated_at", "2015-12-09 19:45:45.813983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.815449"], ["updated_at", "2015-12-09 19:45:45.815449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 19:45:45.886686"], ["updated_at", "2015-12-09 19:45:45.886686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:45.891370"], ["updated_at", "2015-12-09 19:45:45.891370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.897354"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.903605"], ["updated_at", "2015-12-09 19:45:45.903605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 SQL (0.3ms) INSERT INTO "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:45.913668"], ["updated_at", "2015-12-09 19:45:45.913668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:45.917195"], ["updated_at", "2015-12-09 19:45:45.917195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.920406"], ["updated_at", "2015-12-09 19:45:45.920406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignments" CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] CoalescingPanda::GroupCategory Load (0.1ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]]  (1.0ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::AssignmentGroup Load (0.2ms) SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2015-12-09 19:45:45.946263"], ["updated_at", "2015-12-09 19:45:45.946263"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:45.952693"], ["updated_at", "2015-12-09 19:45:45.952693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.957976"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.960279"], ["updated_at", "2015-12-09 19:45:45.960279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.9ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 SQL (0.3ms) INSERT INTO "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:45.969681"], ["updated_at", "2015-12-09 19:45:45.969681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:45.976602"], ["updated_at", "2015-12-09 19:45:45.976602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.982716"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.984966"], ["updated_at", "2015-12-09 19:45:45.984966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]] CoalescingPanda::Submission Load (0.2ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 SQL (0.2ms) INSERT INTO "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:46.033697"], ["updated_at", "2015-12-09 19:45:46.033697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:46.038357"], ["updated_at", "2015-12-09 19:45:46.038357"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.043357"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:46.045421"], ["updated_at", "2015-12-09 19:45:46.045421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2015-12-09 19:45:46.048663"], ["updated_at", "2015-12-09 19:45:46.048663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]]  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 SQL (0.2ms) INSERT INTO "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:46.059132"], ["updated_at", "2015-12-09 19:45:46.059132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:46.066011"], ["updated_at", "2015-12-09 19:45:46.066011"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.073361"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.076035"], ["updated_at", "2015-12-09 19:45:46.076035"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:46.152562"], ["updated_at", "2015-12-09 19:45:46.152562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]]  (1.7ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::GroupMembership Load (0.2ms) SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 SQL (0.2ms) INSERT INTO "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:46.170637"], ["updated_at", "2015-12-09 19:45:46.170637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:46.173504"], ["updated_at", "2015-12-09 19:45:46.173504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.175854"], ["updated_at", "2015-12-09 19:45:46.175854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.202602"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.204881"], ["updated_at", "2015-12-09 19:45:46.204881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-09 19:45:46.228699"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.2ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.1ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.0ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 SQL (0.2ms) INSERT INTO "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:46.249121"], ["updated_at", "2015-12-09 19:45:46.249121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.254896"], ["updated_at", "2015-12-09 19:45:46.254896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.261939"], ["updated_at", "2015-12-09 19:45:46.261939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.263643"], ["updated_at", "2015-12-09 19:45:46.263643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.265172"], ["updated_at", "2015-12-09 19:45:46.265172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]] SQL (0.1ms) UPDATE "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))) [["coalescing_panda_course_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.9ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 SQL (0.2ms) INSERT INTO "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:46.300560"], ["updated_at", "2015-12-09 19:45:46.300560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:46.303493"], ["updated_at", "2015-12-09 19:45:46.303493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.305791"], ["updated_at", "2015-12-09 19:45:46.305791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.311078"], ["updated_at", "2015-12-09 19:45:46.311078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.312653"], ["updated_at", "2015-12-09 19:45:46.312653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.314110"], ["updated_at", "2015-12-09 19:45:46.314110"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.0ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] SQL (0.1ms) DELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.4ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:46.404599"], ["updated_at", "2015-12-09 19:45:46.404599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.409364"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.411433"], ["updated_at", "2015-12-09 19:45:46.411433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-09 19:45:46.430613"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 SQL (0.3ms) INSERT INTO "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:46.450989"], ["updated_at", "2015-12-09 19:45:46.450989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 19:45:46.454516"], ["updated_at", "2015-12-09 19:45:46.454516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.457171"], ["updated_at", "2015-12-09 19:45:46.457171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 19:45:46.472144"], ["updated_at", "2015-12-09 19:45:46.472144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.477035"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 SQL (0.2ms) INSERT INTO "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:46.487056"], ["updated_at", "2015-12-09 19:45:46.487056"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.492283"], ["updated_at", "2015-12-09 19:45:46.492283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.512215"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 SQL (0.2ms) INSERT INTO "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:46.524729"], ["updated_at", "2015-12-09 19:45:46.524729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.530206"], ["updated_at", "2015-12-09 19:45:46.530206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.551213"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 SQL (0.3ms) INSERT INTO "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:46.564685"], ["updated_at", "2015-12-09 19:45:46.564685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.572032"], ["updated_at", "2015-12-09 19:45:46.572032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.649283"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 SQL (0.2ms) INSERT INTO "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:46.657674"], ["updated_at", "2015-12-09 19:45:46.657674"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.667328"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 19:45:46.670469"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.5ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 SQL (0.9ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) 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"]]  (0.1ms) 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"} CoalescingPanda::LtiAccount Load (0.2ms) 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 CoalescingPanda::CanvasApiAuth Load (0.6ms) 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  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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) CoalescingPanda::CanvasApiAuth Load (0.1ms) 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"]]  (0.8ms) rollback transaction  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) 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.429243"], ["updated_at", "2015-12-09 21:03:29.429243"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.0ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.4ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.2ms) 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 SQL (0.4ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "api_domain", "api_token", "refresh_token", "expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-09 21:03:29.487481"], ["updated_at", "2015-12-09 21:03:29.487481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:29.506206"], ["updated_at", "2015-12-09 21:03:29.506206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:29.528311"], ["updated_at", "2015-12-09 21:03:29.528311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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.531585"], ["updated_at", "2015-12-09 21:03:29.531585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "11"], ["created_at", "2015-12-09 21:03:29.537930"], ["updated_at", "2015-12-09 21:03:29.537930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 SQL (0.1ms) INSERT INTO "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 21:03:29.544482"], ["updated_at", "2015-12-09 21:03:29.544482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 SQL (0.0ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 SQL (0.0ms) INSERT INTO "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 21:03:29.594250"], ["updated_at", "2015-12-09 21:03:29.594250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "10"], ["created_at", "2015-12-09 21:03:29.596851"], ["updated_at", "2015-12-09 21:03:29.596851"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "15"], ["created_at", "2015-12-09 21:03:29.618430"], ["updated_at", "2015-12-09 21:03:29.618430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2"], ["created_at", "2015-12-09 21:03:29.620619"], ["updated_at", "2015-12-09 21:03:29.620619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 21:03:29.628472"], ["updated_at", "2015-12-09 21:03:29.628472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 SQL (0.0ms) INSERT INTO "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 21:03:29.633964"], ["updated_at", "2015-12-09 21:03:29.633964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "12"], ["created_at", "2015-12-09 21:03:29.636563"], ["updated_at", "2015-12-09 21:03:29.636563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "17"], ["created_at", "2015-12-09 21:03:29.651214"], ["updated_at", "2015-12-09 21:03:29.651214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-09 21:03:29.654544"], ["updated_at", "2015-12-09 21:03:29.654544"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 21:03:29.720074"], ["updated_at", "2015-12-09 21:03:29.720074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 SQL (0.0ms) INSERT INTO "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 21:03:29.725340"], ["updated_at", "2015-12-09 21:03:29.725340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "14"], ["created_at", "2015-12-09 21:03:29.727955"], ["updated_at", "2015-12-09 21:03:29.727955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-09 21:03:29.730540"], ["updated_at", "2015-12-09 21:03:29.730540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "19"], ["created_at", "2015-12-09 21:03:29.746259"], ["updated_at", "2015-12-09 21:03:29.746259"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "6"], ["created_at", "2015-12-09 21:03:29.750672"], ["updated_at", "2015-12-09 21:03:29.750672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:29.769795"], ["updated_at", "2015-12-09 21:03:29.769795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:29.782159"], ["updated_at", "2015-12-09 21:03:29.782159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:29.792759"], ["updated_at", "2015-12-09 21:03:29.792759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 SQL (0.4ms) INSERT INTO "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 21:03:29.807395"], ["updated_at", "2015-12-09 21:03:29.807395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 21:03:29.825906"], ["updated_at", "2015-12-09 21:03:29.825906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 SQL (0.0ms) INSERT INTO "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 21:03:29.831785"], ["updated_at", "2015-12-09 21:03:29.831785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "20"], ["created_at", "2015-12-09 21:03:29.834266"], ["updated_at", "2015-12-09 21:03:29.834266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "25"], ["created_at", "2015-12-09 21:03:29.854757"], ["updated_at", "2015-12-09 21:03:29.854757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-09 21:03:29.857165"], ["updated_at", "2015-12-09 21:03:29.857165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 21:03:29.865481"], ["updated_at", "2015-12-09 21:03:29.865481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 SQL (0.0ms) INSERT INTO "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 21:03:29.871155"], ["updated_at", "2015-12-09 21:03:29.871155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "22"], ["created_at", "2015-12-09 21:03:29.873729"], ["updated_at", "2015-12-09 21:03:29.873729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "27"], ["created_at", "2015-12-09 21:03:29.888286"], ["updated_at", "2015-12-09 21:03:29.888286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2015-12-09 21:03:29.890708"], ["updated_at", "2015-12-09 21:03:29.890708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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 21:03:29.902212"], ["updated_at", "2015-12-09 21:03:29.902212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 SQL (0.0ms) INSERT INTO "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 21:03:29.908668"], ["updated_at", "2015-12-09 21:03:29.908668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "24"], ["created_at", "2015-12-09 21:03:29.911207"], ["updated_at", "2015-12-09 21:03:29.911207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.913817"], ["updated_at", "2015-12-09 21:03:29.913817"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "29"], ["created_at", "2015-12-09 21:03:29.928594"], ["updated_at", "2015-12-09 21:03:29.928594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "8"], ["created_at", "2015-12-09 21:03:29.930917"], ["updated_at", "2015-12-09 21:03:29.930917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:29.942786"], ["updated_at", "2015-12-09 21:03:29.942786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:29.962267"], ["updated_at", "2015-12-09 21:03:29.962267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:30.030788"], ["updated_at", "2015-12-09 21:03:30.030788"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.078658"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:30.084976"], ["updated_at", "2015-12-09 21:03:30.084976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "coalescing_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.088299"], ["updated_at", "2015-12-09 21:03:30.088299"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 21:03:30.097771"], ["updated_at", "2015-12-09 21:03:30.097771"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "coalescing_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.101489"], ["updated_at", "2015-12-09 21:03:30.101489"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 21:03:30.118078"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.121983"], ["updated_at", "2015-12-09 21:03:30.121983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.123709"], ["updated_at", "2015-12-09 21:03:30.123709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.125238"], ["updated_at", "2015-12-09 21:03:30.125238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-09 21:03:30.127451"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1 SQL (0.5ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.142421"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.0ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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)) [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_courses"  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:30.156023"], ["updated_at", "2015-12-09 21:03:30.156023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.159082"], ["updated_at", "2015-12-09 21:03:30.159082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 21:03:30.171976"], ["updated_at", "2015-12-09 21:03:30.171976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.175161"], ["updated_at", "2015-12-09 21:03:30.175161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 21:03:30.181697"], ["updated_at", "2015-12-09 21:03:30.181697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.184736"], ["updated_at", "2015-12-09 21:03:30.184736"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.199572"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 21:03:30.202094"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:30.209790"], ["updated_at", "2015-12-09 21:03:30.209790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 21:03:30.214440"], ["updated_at", "2015-12-09 21:03:30.214440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.219377"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:30.227775"], ["updated_at", "2015-12-09 21:03:30.227775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 21:03:30.233074"], ["updated_at", "2015-12-09 21:03:30.233074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.239035"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 SQL (0.4ms) INSERT INTO "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 21:03:30.250317"], ["updated_at", "2015-12-09 21:03:30.250317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 21:03:30.306794"], ["updated_at", "2015-12-09 21:03:30.306794"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.309206"], ["updated_at", "2015-12-09 21:03:30.309206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 21:03:30.317490"], ["updated_at", "2015-12-09 21:03:30.317490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 21:03:30.322184"], ["updated_at", "2015-12-09 21:03:30.322184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.326951"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:30.336811"], ["updated_at", "2015-12-09 21:03:30.336811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.342320"], ["updated_at", "2015-12-09 21:03:30.342320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 21:03:30.352443"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.357533"], ["updated_at", "2015-12-09 21:03:30.357533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 12.5], ["updated_at", "2015-12-09 21:03:30.359803"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.362349"], ["updated_at", "2015-12-09 21:03:30.362349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.363926"], ["updated_at", "2015-12-09 21:03:30.363926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.365395"], ["updated_at", "2015-12-09 21:03:30.365395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 25.0], ["updated_at", "2015-12-09 21:03:30.375717"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.5ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.1ms) 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"]] CoalescingPanda::GroupCategory Load (0.6ms) 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.4ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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]] CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.446038"], ["updated_at", "2015-12-09 21:03:30.446038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.2ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 87.5], ["updated_at", "2015-12-09 21:03:30.448463"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::GroupMembership Load (0.6ms) 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"]] CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-09 21:03:30.469643"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:30.533129"], ["updated_at", "2015-12-09 21:03:30.533129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 21:03:30.536847"], ["updated_at", "2015-12-09 21:03:30.536847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.539302"], ["updated_at", "2015-12-09 21:03:30.539302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_sections"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:30.552986"], ["updated_at", "2015-12-09 21:03:30.552986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 21:03:30.555874"], ["updated_at", "2015-12-09 21:03:30.555874"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.560205"], ["updated_at", "2015-12-09 21:03:30.560205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.9ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:30.581922"], ["updated_at", "2015-12-09 21:03:30.581922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 21:03:30.584927"], ["updated_at", "2015-12-09 21:03:30.584927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.587460"], ["updated_at", "2015-12-09 21:03:30.587460"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.594168"], ["updated_at", "2015-12-09 21:03:30.594168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.595713"], ["updated_at", "2015-12-09 21:03:30.595713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.597247"], ["updated_at", "2015-12-09 21:03:30.597247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 21:03:30.620757"], ["updated_at", "2015-12-09 21:03:30.620757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 21:03:30.625984"], ["updated_at", "2015-12-09 21:03:30.625984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.630735"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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.636338"], ["updated_at", "2015-12-09 21:03:30.636338"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Assignment Load (0.2ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:30.649468"], ["updated_at", "2015-12-09 21:03:30.649468"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 21:03:30.652720"], ["updated_at", "2015-12-09 21:03:30.652720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.656401"], ["updated_at", "2015-12-09 21:03:30.656401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignments" CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] CoalescingPanda::GroupCategory Load (0.1ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::AssignmentGroup Load (0.1ms) SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-09 21:03:30.680889"], ["updated_at", "2015-12-09 21:03:30.680889"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 21:03:30.685841"], ["updated_at", "2015-12-09 21:03:30.685841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.690538"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.692501"], ["updated_at", "2015-12-09 21:03:30.692501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:30.699941"], ["updated_at", "2015-12-09 21:03:30.699941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 21:03:30.704411"], ["updated_at", "2015-12-09 21:03:30.704411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.709206"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.711534"], ["updated_at", "2015-12-09 21:03:30.711534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]] CoalescingPanda::Submission Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (1.8ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:30.820324"], ["updated_at", "2015-12-09 21:03:30.820324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 21:03:30.825390"], ["updated_at", "2015-12-09 21:03:30.825390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.831344"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.833962"], ["updated_at", "2015-12-09 21:03:30.833962"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2015-12-09 21:03:30.837834"], ["updated_at", "2015-12-09 21:03:30.837834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]]  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:30.848204"], ["updated_at", "2015-12-09 21:03:30.848204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 21:03:30.853520"], ["updated_at", "2015-12-09 21:03:30.853520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.860843"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.863450"], ["updated_at", "2015-12-09 21:03:30.863450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.883265"], ["updated_at", "2015-12-09 21:03:30.883265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]]  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::GroupMembership Load (0.1ms) SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:30.899733"], ["updated_at", "2015-12-09 21:03:30.899733"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 21:03:30.904012"], ["updated_at", "2015-12-09 21:03:30.904012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.907430"], ["updated_at", "2015-12-09 21:03:30.907430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.932927"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.934972"], ["updated_at", "2015-12-09 21:03:30.934972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-09 21:03:30.957752"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.2ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.1ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:30.976683"], ["updated_at", "2015-12-09 21:03:30.976683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.984648"], ["updated_at", "2015-12-09 21:03:30.984648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.991636"], ["updated_at", "2015-12-09 21:03:30.991636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.993215"], ["updated_at", "2015-12-09 21:03:30.993215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.994751"], ["updated_at", "2015-12-09 21:03:30.994751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]] SQL (0.1ms) UPDATE "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))) [["coalescing_panda_course_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (1.7ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:31.091552"], ["updated_at", "2015-12-09 21:03:31.091552"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 21:03:31.096322"], ["updated_at", "2015-12-09 21:03:31.096322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.099818"], ["updated_at", "2015-12-09 21:03:31.099818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.106455"], ["updated_at", "2015-12-09 21:03:31.106455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.108022"], ["updated_at", "2015-12-09 21:03:31.108022"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.109466"], ["updated_at", "2015-12-09 21:03:31.109466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.0ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] SQL (0.1ms) DELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.9ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 21:03:31.144706"], ["updated_at", "2015-12-09 21:03:31.144706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.149443"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.151439"], ["updated_at", "2015-12-09 21:03:31.151439"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-09 21:03:31.170189"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]]  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 SQL (0.4ms) INSERT INTO "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 21:03:31.188583"], ["updated_at", "2015-12-09 21:03:31.188583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-09 21:03:31.191925"], ["updated_at", "2015-12-09 21:03:31.191925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.194327"], ["updated_at", "2015-12-09 21:03:31.194327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-09 21:03:31.208027"], ["updated_at", "2015-12-09 21:03:31.208027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.212850"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:31.223198"], ["updated_at", "2015-12-09 21:03:31.223198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.228713"], ["updated_at", "2015-12-09 21:03:31.228713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.4ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.249312"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:31.262117"], ["updated_at", "2015-12-09 21:03:31.262117"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.267517"], ["updated_at", "2015-12-09 21:03:31.267517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.339689"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 SQL (0.2ms) INSERT INTO "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 21:03:31.349813"], ["updated_at", "2015-12-09 21:03:31.349813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.355027"], ["updated_at", "2015-12-09 21:03:31.355027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.374815"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 SQL (0.3ms) INSERT INTO "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 21:03:31.383155"], ["updated_at", "2015-12-09 21:03:31.383155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1 SQL (0.5ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.394761"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-09 21:03:31.397749"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.5ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 SQL (0.8ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.0ms) 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"]]  (0.0ms) 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"} CoalescingPanda::LtiAccount Load (0.2ms) 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 CoalescingPanda::CanvasApiAuth Load (0.4ms) 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  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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) CoalescingPanda::CanvasApiAuth Load (0.1ms) 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"]]  (1.0ms) rollback transaction  (0.0ms) 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)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.425233"], ["updated_at", "2015-12-10 15:01:58.425233"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.2ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.5ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.3ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "api_domain", "api_token", "refresh_token", "expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2015-12-10 15:01:58.485823"], ["updated_at", "2015-12-10 15:01:58.485823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 SQL (0.8ms) INSERT INTO "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-10 15:01:58.505942"], ["updated_at", "2015-12-10 15:01:58.505942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 SQL (0.3ms) INSERT INTO "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-10 15:01:58.528171"], ["updated_at", "2015-12-10 15:01:58.528171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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.531331"], ["updated_at", "2015-12-10 15:01:58.531331"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "11"], ["created_at", "2015-12-10 15:01:58.537049"], ["updated_at", "2015-12-10 15:01:58.537049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_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 (?, ?, ?, ?, ?, ?)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 SQL (0.2ms) INSERT INTO "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-10 15:01:58.544091"], ["updated_at", "2015-12-10 15:01:58.544091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 SQL (0.1ms) INSERT INTO "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-10 15:01:58.649286"], ["updated_at", "2015-12-10 15:01:58.649286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "10"], ["created_at", "2015-12-10 15:01:58.652323"], ["updated_at", "2015-12-10 15:01:58.652323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "15"], ["created_at", "2015-12-10 15:01:58.673386"], ["updated_at", "2015-12-10 15:01:58.673386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2"], ["created_at", "2015-12-10 15:01:58.675842"], ["updated_at", "2015-12-10 15:01:58.675842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-10 15:01:58.684701"], ["updated_at", "2015-12-10 15:01:58.684701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 SQL (0.0ms) INSERT INTO "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-10 15:01:58.690829"], ["updated_at", "2015-12-10 15:01:58.690829"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "12"], ["created_at", "2015-12-10 15:01:58.694294"], ["updated_at", "2015-12-10 15:01:58.694294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1 SQL (1.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.8ms) 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", "17"], ["created_at", "2015-12-10 15:01:58.715704"], ["updated_at", "2015-12-10 15:01:58.715704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-10 15:01:58.721042"], ["updated_at", "2015-12-10 15:01:58.721042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-10 15:01:58.735063"], ["updated_at", "2015-12-10 15:01:58.735063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 SQL (0.1ms) INSERT INTO "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-10 15:01:58.741336"], ["updated_at", "2015-12-10 15:01:58.741336"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "14"], ["created_at", "2015-12-10 15:01:58.744387"], ["updated_at", "2015-12-10 15:01:58.744387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2015-12-10 15:01:58.747234"], ["updated_at", "2015-12-10 15:01:58.747234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "19"], ["created_at", "2015-12-10 15:01:58.763601"], ["updated_at", "2015-12-10 15:01:58.763601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2015-12-10 15:01:58.766565"], ["updated_at", "2015-12-10 15:01:58.766565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 SQL (0.3ms) INSERT INTO "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-10 15:01:58.782883"], ["updated_at", "2015-12-10 15:01:58.782883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 SQL (0.3ms) INSERT INTO "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-10 15:01:58.795978"], ["updated_at", "2015-12-10 15:01:58.795978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 SQL (0.3ms) INSERT INTO "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-10 15:01:58.808549"], ["updated_at", "2015-12-10 15:01:58.808549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 SQL (0.3ms) INSERT INTO "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-10 15:01:58.824472"], ["updated_at", "2015-12-10 15:01:58.824472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-10 15:01:58.843177"], ["updated_at", "2015-12-10 15:01:58.843177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 SQL (0.0ms) INSERT INTO "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-10 15:01:58.849138"], ["updated_at", "2015-12-10 15:01:58.849138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "20"], ["created_at", "2015-12-10 15:01:58.851701"], ["updated_at", "2015-12-10 15:01:58.851701"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "25"], ["created_at", "2015-12-10 15:01:58.929286"], ["updated_at", "2015-12-10 15:01:58.929286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2015-12-10 15:01:58.931558"], ["updated_at", "2015-12-10 15:01:58.931558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-10 15:01:58.939488"], ["updated_at", "2015-12-10 15:01:58.939488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 SQL (0.1ms) INSERT INTO "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-10 15:01:58.946216"], ["updated_at", "2015-12-10 15:01:58.946216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "22"], ["created_at", "2015-12-10 15:01:58.949899"], ["updated_at", "2015-12-10 15:01:58.949899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "27"], ["created_at", "2015-12-10 15:01:58.967641"], ["updated_at", "2015-12-10 15:01:58.967641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2015-12-10 15:01:58.971483"], ["updated_at", "2015-12-10 15:01:58.971483"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-10 15:01:58.985626"], ["updated_at", "2015-12-10 15:01:58.985626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 SQL (0.0ms) INSERT INTO "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-10 15:01:58.991159"], ["updated_at", "2015-12-10 15:01:58.991159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "24"], ["created_at", "2015-12-10 15:01:58.993818"], ["updated_at", "2015-12-10 15:01:58.993818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.996576"], ["updated_at", "2015-12-10 15:01:58.996576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "29"], ["created_at", "2015-12-10 15:01:59.014623"], ["updated_at", "2015-12-10 15:01:59.014623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "8"], ["created_at", "2015-12-10 15:01:59.017502"], ["updated_at", "2015-12-10 15:01:59.017502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 SQL (0.2ms) INSERT INTO "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-10 15:01:59.029522"], ["updated_at", "2015-12-10 15:01:59.029522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 SQL (0.2ms) INSERT INTO "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-10 15:01:59.047142"], ["updated_at", "2015-12-10 15:01:59.047142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 SQL (0.2ms) INSERT INTO "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-10 15:01:59.061799"], ["updated_at", "2015-12-10 15:01:59.061799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.103587"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 SQL (0.2ms) INSERT INTO "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-10 15:01:59.110209"], ["updated_at", "2015-12-10 15:01:59.110209"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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.113725"], ["updated_at", "2015-12-10 15:01:59.113725"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-10 15:01:59.123787"], ["updated_at", "2015-12-10 15:01:59.123787"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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.128112"], ["updated_at", "2015-12-10 15:01:59.128112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-10 15:01:59.142765"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.201128"], ["updated_at", "2015-12-10 15:01:59.201128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.203202"], ["updated_at", "2015-12-10 15:01:59.203202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.204876"], ["updated_at", "2015-12-10 15:01:59.204876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-10 15:01:59.207368"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.221185"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.0ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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)) [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_courses"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 SQL (0.2ms) INSERT INTO "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-10 15:01:59.233650"], ["updated_at", "2015-12-10 15:01:59.233650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.236682"], ["updated_at", "2015-12-10 15:01:59.236682"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-10 15:01:59.249535"], ["updated_at", "2015-12-10 15:01:59.249535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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.252812"], ["updated_at", "2015-12-10 15:01:59.252812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-10 15:01:59.260742"], ["updated_at", "2015-12-10 15:01:59.260742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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.264588"], ["updated_at", "2015-12-10 15:01:59.264588"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.279479"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-10 15:01:59.282903"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 SQL (0.2ms) INSERT INTO "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-10 15:01:59.292052"], ["updated_at", "2015-12-10 15:01:59.292052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-10 15:01:59.297744"], ["updated_at", "2015-12-10 15:01:59.297744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.302871"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 SQL (0.2ms) INSERT INTO "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-10 15:01:59.310264"], ["updated_at", "2015-12-10 15:01:59.310264"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-10 15:01:59.315186"], ["updated_at", "2015-12-10 15:01:59.315186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.319999"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 SQL (0.4ms) INSERT INTO "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-10 15:01:59.330656"], ["updated_at", "2015-12-10 15:01:59.330656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-10 15:01:59.334184"], ["updated_at", "2015-12-10 15:01:59.334184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.337069"], ["updated_at", "2015-12-10 15:01:59.337069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-10 15:01:59.345596"], ["updated_at", "2015-12-10 15:01:59.345596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-10 15:01:59.350636"], ["updated_at", "2015-12-10 15:01:59.350636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.355809"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 SQL (0.3ms) INSERT INTO "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-10 15:01:59.367572"], ["updated_at", "2015-12-10 15:01:59.367572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.374628"], ["updated_at", "2015-12-10 15:01:59.374628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-10 15:01:59.383775"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.387931"], ["updated_at", "2015-12-10 15:01:59.387931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 12.5], ["updated_at", "2015-12-10 15:01:59.390262"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.393228"], ["updated_at", "2015-12-10 15:01:59.393228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.395057"], ["updated_at", "2015-12-10 15:01:59.395057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.396805"], ["updated_at", "2015-12-10 15:01:59.396805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 25.0], ["updated_at", "2015-12-10 15:01:59.408344"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.2ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.5ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.1ms) 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"]] CoalescingPanda::GroupCategory Load (0.4ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.4ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.524607"], ["updated_at", "2015-12-10 15:01:59.524607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 87.5], ["updated_at", "2015-12-10 15:01:59.526257"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::GroupMembership Load (0.5ms) 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"]] CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2015-12-10 15:01:59.549745"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Section Load (0.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 SQL (0.4ms) INSERT INTO "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-10 15:01:59.564805"], ["updated_at", "2015-12-10 15:01:59.564805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-10 15:01:59.568495"], ["updated_at", "2015-12-10 15:01:59.568495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.571150"], ["updated_at", "2015-12-10 15:01:59.571150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_sections"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 SQL (0.3ms) INSERT INTO "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-10 15:01:59.585886"], ["updated_at", "2015-12-10 15:01:59.585886"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-10 15:01:59.589608"], ["updated_at", "2015-12-10 15:01:59.589608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.592653"], ["updated_at", "2015-12-10 15:01:59.592653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 SQL (0.4ms) INSERT INTO "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-10 15:01:59.615556"], ["updated_at", "2015-12-10 15:01:59.615556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-10 15:01:59.618859"], ["updated_at", "2015-12-10 15:01:59.618859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.621353"], ["updated_at", "2015-12-10 15:01:59.621353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.627251"], ["updated_at", "2015-12-10 15:01:59.627251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.628934"], ["updated_at", "2015-12-10 15:01:59.628934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.630469"], ["updated_at", "2015-12-10 15:01:59.630469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2015-12-10 15:01:59.713775"], ["updated_at", "2015-12-10 15:01:59.713775"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-10 15:01:59.719462"], ["updated_at", "2015-12-10 15:01:59.719462"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.724718"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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.730756"], ["updated_at", "2015-12-10 15:01:59.730756"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (0.9ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Assignment Load (0.2ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 SQL (0.5ms) INSERT INTO "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-10 15:01:59.745754"], ["updated_at", "2015-12-10 15:01:59.745754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-10 15:01:59.750569"], ["updated_at", "2015-12-10 15:01:59.750569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.754201"], ["updated_at", "2015-12-10 15:01:59.754201"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_assignments" CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] CoalescingPanda::GroupCategory Load (0.1ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::AssignmentGroup Load (0.1ms) SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2015-12-10 15:01:59.785029"], ["updated_at", "2015-12-10 15:01:59.785029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-10 15:01:59.790834"], ["updated_at", "2015-12-10 15:01:59.790834"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.796742"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.798869"], ["updated_at", "2015-12-10 15:01:59.798869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 SQL (0.2ms) INSERT INTO "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-10 15:01:59.806725"], ["updated_at", "2015-12-10 15:01:59.806725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-10 15:01:59.811823"], ["updated_at", "2015-12-10 15:01:59.811823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.817420"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.819581"], ["updated_at", "2015-12-10 15:01:59.819581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]] CoalescingPanda::Submission Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (1.1ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 SQL (0.2ms) INSERT INTO "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-10 15:01:59.875014"], ["updated_at", "2015-12-10 15:01:59.875014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-10 15:01:59.880461"], ["updated_at", "2015-12-10 15:01:59.880461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.886050"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.888490"], ["updated_at", "2015-12-10 15:01:59.888490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "2015-12-10 15:01:59.892612"], ["updated_at", "2015-12-10 15:01:59.892612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]]  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 SQL (0.2ms) INSERT INTO "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-10 15:01:59.905080"], ["updated_at", "2015-12-10 15:01:59.905080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-10 15:01:59.910853"], ["updated_at", "2015-12-10 15:01:59.910853"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.917879"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.920501"], ["updated_at", "2015-12-10 15:01:59.920501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:02:00.004506"], ["updated_at", "2015-12-10 15:02:00.004506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]]  (1.3ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::GroupMembership Load (0.1ms) SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 SQL (0.4ms) INSERT INTO "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-10 15:02:00.023141"], ["updated_at", "2015-12-10 15:02:00.023141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-10 15:02:00.026899"], ["updated_at", "2015-12-10 15:02:00.026899"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.030108"], ["updated_at", "2015-12-10 15:02:00.030108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.063007"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.065302"], ["updated_at", "2015-12-10 15:02:00.065302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n"], ["updated_at", "2015-12-10 15:02:00.091810"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.2ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.1ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 SQL (0.3ms) INSERT INTO "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-10 15:02:00.111389"], ["updated_at", "2015-12-10 15:02:00.111389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.117421"], ["updated_at", "2015-12-10 15:02:00.117421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.124230"], ["updated_at", "2015-12-10 15:02:00.124230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.125830"], ["updated_at", "2015-12-10 15:02:00.125830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.127335"], ["updated_at", "2015-12-10 15:02:00.127335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]] SQL (0.1ms) UPDATE "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))) [["coalescing_panda_course_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (1.1ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 SQL (0.4ms) INSERT INTO "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-10 15:02:00.162699"], ["updated_at", "2015-12-10 15:02:00.162699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-10 15:02:00.165832"], ["updated_at", "2015-12-10 15:02:00.165832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.168511"], ["updated_at", "2015-12-10 15:02:00.168511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.174281"], ["updated_at", "2015-12-10 15:02:00.174281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.175828"], ["updated_at", "2015-12-10 15:02:00.175828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.177327"], ["updated_at", "2015-12-10 15:02:00.177327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.0ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] SQL (0.1ms) DELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.3ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-10 15:02:00.277215"], ["updated_at", "2015-12-10 15:02:00.277215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.282620"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.284918"], ["updated_at", "2015-12-10 15:02:00.284918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2015-12-10 15:02:00.304765"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.2ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]]  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 SQL (0.3ms) INSERT INTO "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-10 15:02:00.326035"], ["updated_at", "2015-12-10 15:02:00.326035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2015-12-10 15:02:00.329330"], ["updated_at", "2015-12-10 15:02:00.329330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.332268"], ["updated_at", "2015-12-10 15:02:00.332268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2015-12-10 15:02:00.345848"], ["updated_at", "2015-12-10 15:02:00.345848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.351423"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 SQL (0.3ms) INSERT INTO "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-10 15:02:00.363356"], ["updated_at", "2015-12-10 15:02:00.363356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.368767"], ["updated_at", "2015-12-10 15:02:00.368767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.387235"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 SQL (0.4ms) INSERT INTO "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-10 15:02:00.399230"], ["updated_at", "2015-12-10 15:02:00.399230"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.406213"], ["updated_at", "2015-12-10 15:02:00.406213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.425734"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 SQL (0.4ms) INSERT INTO "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-10 15:02:00.438550"], ["updated_at", "2015-12-10 15:02:00.438550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.444819"], ["updated_at", "2015-12-10 15:02:00.444819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.528542"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 SQL (0.3ms) INSERT INTO "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-10 15:02:00.539970"], ["updated_at", "2015-12-10 15:02:00.539970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.551454"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2015-12-10 15:02:00.555015"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.4ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (10.7ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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 CoalescingPanda::CanvasApiAuth Load (0.0ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.4ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.4ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.1ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (4.8ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.2ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.2ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.6ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.2ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 33ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.2ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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 CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.2ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.4ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.4ms) 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: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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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)  (0.3ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.2ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.1ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (2.5ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.5ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.6ms) 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: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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) 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)  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.0ms) rollback transaction  (0.0ms) begin transaction 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  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.2ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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 CoalescingPanda::CanvasApiAuth Load (0.0ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.4ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.3ms) 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: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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"user_id"=>"1", "api_domain"=>"foo.com", "code"=>"bar", "key"=>"key", "state"=>"test"} CoalescingPanda::LtiAccount Load (0.2ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'key' LIMIT 1 Completed 500 Internal Server Error in 12ms  (0.1ms) rollback transaction  (0.1ms) begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Completed 200 OK in 7ms (Views: 7.3ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.1ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.1ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (30.1ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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 CoalescingPanda::CanvasApiAuth Load (0.0ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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 CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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  (1.1ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 SQL (0.6ms) INSERT INTO "coalescing_panda_lti_accounts" ("canvas_account_id", "created_at", "key", "name", "oauth2_client_id", "oauth2_client_key", "secret", "settings", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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]]  (0.1ms) 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"} CoalescingPanda::LtiAccount Load (0.1ms) SELECT "coalescing_panda_lti_accounts".* FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 Creating Bearcat client for auth token retrieval pointed to: http://foo.com CoalescingPanda::CanvasApiAuth Load (0.1ms) 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  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.0ms) 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 SQL (1.2ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("api_domain", "api_token", "created_at", "expires_at", "refresh_token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 20ms (Views: 7.1ms | ActiveRecord: 1.6ms) CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "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  (0.6ms) rollback transaction  (0.1ms) begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.4ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 1' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 1' LIMIT 1 SQL (0.7ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.9ms) 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"]]  (0.0ms) 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"} CoalescingPanda::LtiAccount Load (0.2ms) 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 CoalescingPanda::CanvasApiAuth Load (0.4ms) 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  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.1ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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) CoalescingPanda::CanvasApiAuth Load (0.1ms) 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"]]  (1.2ms) rollback transaction  (0.1ms) 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)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 3' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 3' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 4' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 8' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 8' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 9' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 9' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 11' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' LIMIT 1 SQL (0.5ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 12' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 13' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.7ms) 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.952997"], ["updated_at", "2016-01-27 14:01:11.952997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 15' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 CoalescingPanda::CanvasApiAuth Load (0.1ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.3ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.1ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::CanvasApiAuth Exists (0.1ms) 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 SQL (0.2ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "api_domain", "api_token", "refresh_token", "expires_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-01-27 14:01:12.015071"], ["updated_at", "2016-01-27 14:01:12.015071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 17' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2016-01-27 14:01:12.039138"], ["updated_at", "2016-01-27 14:01:12.039138"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 19' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 20' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2016-01-27 14:01:12.061391"], ["updated_at", "2016-01-27 14:01:12.061391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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:12.064684"], ["updated_at", "2016-01-27 14:01:12.064684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 22' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "11"], ["created_at", "2016-01-27 14:01:12.069406"], ["updated_at", "2016-01-27 14:01:12.069406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2016-01-27 14:01:12.076202"], ["updated_at", "2016-01-27 14:01:12.076202"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 24' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 25' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 25' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' LIMIT 1 SQL (0.5ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 28' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 28' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 29' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 29' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 30' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' LIMIT 1 SQL (0.1ms) INSERT INTO "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", "2016-01-27 14:01:12.192450"], ["updated_at", "2016-01-27 14:01:12.192450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "10"], ["created_at", "2016-01-27 14:01:12.195955"], ["updated_at", "2016-01-27 14:01:12.195955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 31' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 31' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 32' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 33' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 33' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "15"], ["created_at", "2016-01-27 14:01:12.218342"], ["updated_at", "2016-01-27 14:01:12.218342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "2"], ["created_at", "2016-01-27 14:01:12.221592"], ["updated_at", "2016-01-27 14:01:12.221592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "2016-01-27 14:01:12.232670"], ["updated_at", "2016-01-27 14:01:12.232670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 35' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 36' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 SQL (0.0ms) INSERT INTO "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", "2016-01-27 14:01:12.239456"], ["updated_at", "2016-01-27 14:01:12.239456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "12"], ["created_at", "2016-01-27 14:01:12.242367"], ["updated_at", "2016-01-27 14:01:12.242367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 39' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "17"], ["created_at", "2016-01-27 14:01:12.258547"], ["updated_at", "2016-01-27 14:01:12.258547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2016-01-27 14:01:12.260989"], ["updated_at", "2016-01-27 14:01:12.260989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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", "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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 40' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "2016-01-27 14:01:12.275787"], ["updated_at", "2016-01-27 14:01:12.275787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 42' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' LIMIT 1 SQL (0.1ms) INSERT INTO "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", "2016-01-27 14:01:12.284091"], ["updated_at", "2016-01-27 14:01:12.284091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "14"], ["created_at", "2016-01-27 14:01:12.287440"], ["updated_at", "2016-01-27 14:01:12.287440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-01-27 14:01:12.290460"], ["updated_at", "2016-01-27 14:01:12.290460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 45' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "19"], ["created_at", "2016-01-27 14:01:12.308413"], ["updated_at", "2016-01-27 14:01:12.308413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2016-01-27 14:01:12.311648"], ["updated_at", "2016-01-27 14:01:12.311648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 SQL (0.4ms) INSERT INTO "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", "2016-01-27 14:01:12.330070"], ["updated_at", "2016-01-27 14:01:12.330070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 50' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' LIMIT 1 SQL (0.4ms) INSERT INTO "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", "2016-01-27 14:01:12.345333"], ["updated_at", "2016-01-27 14:01:12.345333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 51' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 52' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2016-01-27 14:01:12.356789"], ["updated_at", "2016-01-27 14:01:12.356789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 54' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' LIMIT 1 SQL (0.4ms) INSERT INTO "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", "2016-01-27 14:01:12.371819"], ["updated_at", "2016-01-27 14:01:12.371819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 55' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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", "2016-01-27 14:01:12.393333"], ["updated_at", "2016-01-27 14:01:12.393333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 56' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 57' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' LIMIT 1 SQL (0.0ms) INSERT INTO "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", "2016-01-27 14:01:12.400363"], ["updated_at", "2016-01-27 14:01:12.400363"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "20"], ["created_at", "2016-01-27 14:01:12.403249"], ["updated_at", "2016-01-27 14:01:12.403249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 59' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 60' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "25"], ["created_at", "2016-01-27 14:01:12.478142"], ["updated_at", "2016-01-27 14:01:12.478142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "4"], ["created_at", "2016-01-27 14:01:12.480570"], ["updated_at", "2016-01-27 14:01:12.480570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "2016-01-27 14:01:12.490201"], ["updated_at", "2016-01-27 14:01:12.490201"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 63' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 SQL (0.0ms) INSERT INTO "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", "2016-01-27 14:01:12.496383"], ["updated_at", "2016-01-27 14:01:12.496383"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "22"], ["created_at", "2016-01-27 14:01:12.499367"], ["updated_at", "2016-01-27 14:01:12.499367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 65' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 66' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' LIMIT 1 SQL (0.0ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "27"], ["created_at", "2016-01-27 14:01:12.516520"], ["updated_at", "2016-01-27 14:01:12.516520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "6"], ["created_at", "2016-01-27 14:01:12.518887"], ["updated_at", "2016-01-27 14:01:12.518887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.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 (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "2016-01-27 14:01:12.529467"], ["updated_at", "2016-01-27 14:01:12.529467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 68' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 69' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 69' LIMIT 1 SQL (0.1ms) INSERT INTO "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", "2016-01-27 14:01:12.536169"], ["updated_at", "2016-01-27 14:01:12.536169"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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", "24"], ["created_at", "2016-01-27 14:01:12.540669"], ["updated_at", "2016-01-27 14:01:12.540669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.544302"], ["updated_at", "2016-01-27 14:01:12.544302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 71' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' LIMIT 1 SQL (0.1ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 72' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1 SQL (0.1ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "29"], ["created_at", "2016-01-27 14:01:12.560582"], ["updated_at", "2016-01-27 14:01:12.560582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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", "8"], ["created_at", "2016-01-27 14:01:12.563053"], ["updated_at", "2016-01-27 14:01:12.563053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 73' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2016-01-27 14:01:12.574417"], ["updated_at", "2016-01-27 14:01:12.574417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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.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 (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 76' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 76' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2016-01-27 14:01:12.593551"], ["updated_at", "2016-01-27 14:01:12.593551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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 (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2016-01-27 14:01:12.607387"], ["updated_at", "2016-01-27 14:01:12.607387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 79' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.675841"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2016-01-27 14:01:12.682907"], ["updated_at", "2016-01-27 14:01:12.682907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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.687456"], ["updated_at", "2016-01-27 14:01:12.687456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' LIMIT 1 SQL (0.2ms) INSERT INTO "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-01-27 14:01:12.695223"], ["updated_at", "2016-01-27 14:01:12.695223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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.698755"], ["updated_at", "2016-01-27 14:01:12.698755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2016-01-27 14:01:12.774956"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.781194"], ["updated_at", "2016-01-27 14:01:12.781194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.783952"], ["updated_at", "2016-01-27 14:01:12.783952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.786031"], ["updated_at", "2016-01-27 14:01:12.786031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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:12.788412"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 82' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 82' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.801459"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.1ms) SELECT "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 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT 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 (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.2ms) SELECT "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)) [["coalescing_panda_lti_account_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_courses"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2016-01-27 14:01:12.816754"], ["updated_at", "2016-01-27 14:01:12.816754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_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.821250"], ["updated_at", "2016-01-27 14:01:12.821250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) 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]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' LIMIT 1 SQL (0.2ms) INSERT INTO "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-01-27 14:01:12.837180"], ["updated_at", "2016-01-27 14:01:12.837180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_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.840543"], ["updated_at", "2016-01-27 14:01:12.840543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' LIMIT 1 SQL (0.3ms) INSERT INTO "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-01-27 14:01:12.847476"], ["updated_at", "2016-01-27 14:01:12.847476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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.851105"], ["updated_at", "2016-01-27 14:01:12.851105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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.866052"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2016-01-27 14:01:12.869424"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 87' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' LIMIT 1 SQL (0.2ms) INSERT INTO "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-01-27 14:01:12.877849"], ["updated_at", "2016-01-27 14:01:12.877849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 88' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' LIMIT 1 SQL (0.5ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-01-27 14:01:12.884723"], ["updated_at", "2016-01-27 14:01:12.884723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.891346"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 89' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' LIMIT 1 SQL (0.3ms) INSERT INTO "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-01-27 14:01:12.898875"], ["updated_at", "2016-01-27 14:01:12.898875"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 90' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-01-27 14:01:12.904613"], ["updated_at", "2016-01-27 14:01:12.904613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.911217"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 91' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 92' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' LIMIT 1 SQL (0.4ms) INSERT INTO "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-01-27 14:01:12.922994"], ["updated_at", "2016-01-27 14:01:12.922994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-01-27 14:01:12.927289"], ["updated_at", "2016-01-27 14:01:12.927289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.930518"], ["updated_at", "2016-01-27 14:01:12.930518"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 93' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 93' LIMIT 1 SQL (0.2ms) INSERT INTO "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-01-27 14:01:12.940075"], ["updated_at", "2016-01-27 14:01:12.940075"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-01-27 14:01:12.945246"], ["updated_at", "2016-01-27 14:01:12.945246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.950387"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 96' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' LIMIT 1 SQL (0.4ms) INSERT INTO "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-01-27 14:01:12.962066"], ["updated_at", "2016-01-27 14:01:12.962066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.968394"], ["updated_at", "2016-01-27 14:01:12.968394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2016-01-27 14:01:12.978972"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.2ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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:12.985348"], ["updated_at", "2016-01-27 14:01:12.985348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 12.5], ["updated_at", "2016-01-27 14:01:12.988609"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.992637"], ["updated_at", "2016-01-27 14:01:12.992637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.994647"], ["updated_at", "2016-01-27 14:01:12.994647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.996422"], ["updated_at", "2016-01-27 14:01:12.996422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (1, 2, 3)) [["coalescing_panda_course_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 25.0], ["updated_at", "2016-01-27 14:01:13.007975"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.2ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.4ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.1ms) 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"]] CoalescingPanda::GroupCategory Load (0.4ms) 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.2ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.5ms) 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"]] CoalescingPanda::GroupCategory Load (0.1ms) 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]] CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_users"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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-01-27 14:01:13.136445"], ["updated_at", "2016-01-27 14:01:13.136445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.2ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 87.5], ["updated_at", "2016-01-27 14:01:13.138684"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.2ms) 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"]] CoalescingPanda::GroupMembership Load (0.6ms) 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"]] CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.2ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2016-01-27 14:01:13.167591"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2016-01-27 14:01:13.176162"], ["updated_at", "2016-01-27 14:01:13.176162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 98' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-01-27 14:01:13.181108"], ["updated_at", "2016-01-27 14:01:13.181108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.186853"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.189159"], ["updated_at", "2016-01-27 14:01:13.189159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_sections"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 99' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 99' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2016-01-27 14:01:13.197573"], ["updated_at", "2016-01-27 14:01:13.197573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 100' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_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", "2016-01-27 14:01:13.203758"], ["updated_at", "2016-01-27 14:01:13.203758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.209736"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.212215"], ["updated_at", "2016-01-27 14:01:13.212215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.214228"], ["updated_at", "2016-01-27 14:01:13.214228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.216561"], ["updated_at", "2016-01-27 14:01:13.216561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 101' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2016-01-27 14:01:13.225910"], ["updated_at", "2016-01-27 14:01:13.225910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-01-27 14:01:13.232985"], ["updated_at", "2016-01-27 14:01:13.232985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.238645"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.240976"], ["updated_at", "2016-01-27 14:01:13.240976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1  (1.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 103' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2016-01-27 14:01:13.339573"], ["updated_at", "2016-01-27 14:01:13.339573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-01-27 14:01:13.342668"], ["updated_at", "2016-01-27 14:01:13.342668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.345238"], ["updated_at", "2016-01-27 14:01:13.345238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.2ms) 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 105' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 105' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2016-01-27 14:01:13.365721"], ["updated_at", "2016-01-27 14:01:13.365721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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", "2016-01-27 14:01:13.370479"], ["updated_at", "2016-01-27 14:01:13.370479"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.375500"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.377741"], ["updated_at", "2016-01-27 14:01:13.377741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_assignments" CoalescingPanda::Assignment Load (0.1ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."canvas_assignment_id" = ? LIMIT 1 [["canvas_assignment_id", "1"]] CoalescingPanda::GroupCategory Load (0.1ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::AssignmentGroup Load (0.2ms) SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 107' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' LIMIT 1 SQL (0.8ms) INSERT INTO "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", "2016-01-27 14:01:13.404527"], ["updated_at", "2016-01-27 14:01:13.404527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-01-27 14:01:13.408653"], ["updated_at", "2016-01-27 14:01:13.408653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.411223"], ["updated_at", "2016-01-27 14:01:13.411223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.0ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.8ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 109' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' LIMIT 1 SQL (0.5ms) INSERT INTO "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-01-27 14:01:13.424850"], ["updated_at", "2016-01-27 14:01:13.424850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-01-27 14:01:13.429467"], ["updated_at", "2016-01-27 14:01:13.429467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.433221"], ["updated_at", "2016-01-27 14:01:13.433221"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) 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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.443599"], ["updated_at", "2016-01-27 14:01:13.443599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.446014"], ["updated_at", "2016-01-27 14:01:13.446014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.448178"], ["updated_at", "2016-01-27 14:01:13.448178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.0ms) 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"]] CoalescingPanda::AssignmentGroup Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.1ms) 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]] CoalescingPanda::Submission Load (0.1ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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-01-27 14:01:13.478933"], ["updated_at", "2016-01-27 14:01:13.478933"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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-01-27 14:01:13.482186"], ["updated_at", "2016-01-27 14:01:13.482186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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-01-27 14:01:13.485516"], ["updated_at", "2016-01-27 14:01:13.485516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.0ms) 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"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]] CoalescingPanda::Assignment Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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-01-27 14:01:13.490192"], ["updated_at", "2016-01-27 14:01:13.490192"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 111' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 112' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2016-01-27 14:01:13.502066"], ["updated_at", "2016-01-27 14:01:13.502066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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", "2016-01-27 14:01:13.505367"], ["updated_at", "2016-01-27 14:01:13.505367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.508552"], ["updated_at", "2016-01-27 14:01:13.508552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.0ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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-01-27 14:01:13.519783"], ["updated_at", "2016-01-27 14:01:13.519783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]]  (0.7ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Group Load (0.2ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 114' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' LIMIT 1 SQL (0.4ms) INSERT INTO "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-01-27 14:01:13.531815"], ["updated_at", "2016-01-27 14:01:13.531815"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-01-27 14:01:13.535758"], ["updated_at", "2016-01-27 14:01:13.535758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.539052"], ["updated_at", "2016-01-27 14:01:13.539052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (56.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.606364"], ["updated_at", "2016-01-27 14:01:13.606364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.608192"], ["updated_at", "2016-01-27 14:01:13.608192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.609932"], ["updated_at", "2016-01-27 14:01:13.609932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::GroupCategory Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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-01-27 14:01:13.635042"], ["updated_at", "2016-01-27 14:01:13.635042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.1ms) 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"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.1ms) 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"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]]  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::GroupMembership Load (0.1ms) SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 115' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' LIMIT 1 SQL (0.2ms) INSERT INTO "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-01-27 14:01:13.646510"], ["updated_at", "2016-01-27 14:01:13.646510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 116' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-01-27 14:01:13.652236"], ["updated_at", "2016-01-27 14:01:13.652236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.657278"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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-01-27 14:01:13.661053"], ["updated_at", "2016-01-27 14:01:13.661053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]] CoalescingPanda::Group Load (0.0ms) 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"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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-01-27 14:01:13.663670"], ["updated_at", "2016-01-27 14:01:13.663670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.1ms) 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"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 117' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 118' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.688024"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.690989"], ["updated_at", "2016-01-27 14:01:13.690989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n"], ["updated_at", "2016-01-27 14:01:13.713773"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.2ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.1ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 119' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' LIMIT 1 SQL (0.5ms) INSERT INTO "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", "2016-01-27 14:01:13.735296"], ["updated_at", "2016-01-27 14:01:13.735296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.742795"], ["updated_at", "2016-01-27 14:01:13.742795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.749976"], ["updated_at", "2016-01-27 14:01:13.749976"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.751791"], ["updated_at", "2016-01-27 14:01:13.751791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.753485"], ["updated_at", "2016-01-27 14:01:13.753485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) 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]] SQL (0.1ms) UPDATE "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))) [["coalescing_panda_course_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (2.9ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2016-01-27 14:01:13.799699"], ["updated_at", "2016-01-27 14:01:13.799699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-01-27 14:01:13.803620"], ["updated_at", "2016-01-27 14:01:13.803620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.806314"], ["updated_at", "2016-01-27 14:01:13.806314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.813026"], ["updated_at", "2016-01-27 14:01:13.813026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.815143"], ["updated_at", "2016-01-27 14:01:13.815143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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.817019"], ["updated_at", "2016-01-27 14:01:13.817019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_users"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.0ms) 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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.1ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] SQL (0.1ms) DELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.1ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 123' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-01-27 14:01:13.931324"], ["updated_at", "2016-01-27 14:01:13.931324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.938470"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.1ms) 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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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.941403"], ["updated_at", "2016-01-27 14:01:13.941403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) 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]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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"]] CoalescingPanda::Section Load (0.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND "coalescing_panda_sections"."canvas_section_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n- :soft_delete\n"], ["updated_at", "2016-01-27 14:01:13.967296"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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"]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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]] CoalescingPanda::Enrollment Load (0.0ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] CoalescingPanda::User Load (0.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.1ms) 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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) 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]]  (0.0ms) RELEASE SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 126' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' LIMIT 1 SQL (0.4ms) INSERT INTO "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", "2016-01-27 14:01:13.987925"], ["updated_at", "2016-01-27 14:01:13.987925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-01-27 14:01:13.991947"], ["updated_at", "2016-01-27 14:01:13.991947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.996097"], ["updated_at", "2016-01-27 14:01:13.996097"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 127' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 128' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 128' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-01-27 14:01:14.011583"], ["updated_at", "2016-01-27 14:01:14.011583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.017427"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 129' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' LIMIT 1 SQL (0.2ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 130' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2016-01-27 14:01:14.028562"], ["updated_at", "2016-01-27 14:01:14.028562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.037253"], ["updated_at", "2016-01-27 14:01:14.037253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 131' LIMIT 1 SQL (0.4ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 132' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.060921"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 133' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 134' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' LIMIT 1 SQL (0.4ms) INSERT INTO "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", "2016-01-27 14:01:14.074153"], ["updated_at", "2016-01-27 14:01:14.074153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.081003"], ["updated_at", "2016-01-27 14:01:14.081003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.103879"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 137' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 137' LIMIT 1 SQL (0.3ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 138' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 138' LIMIT 1 SQL (0.3ms) INSERT INTO "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", "2016-01-27 14:01:14.114966"], ["updated_at", "2016-01-27 14:01:14.114966"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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.120699"], ["updated_at", "2016-01-27 14:01:14.120699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 139' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 140' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 140' LIMIT 1 SQL (0.5ms) INSERT INTO "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"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.208735"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 141' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' LIMIT 1 SQL (0.2ms) INSERT INTO "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", "2016-01-27 14:01:14.218296"], ["updated_at", "2016-01-27 14:01:14.218296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 142' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 142' LIMIT 1 SQL (0.4ms) INSERT INTO "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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_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.229197"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2016-01-27 14:01:14.233442"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_type" = 'CoalescingPanda::Course' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.0ms) SAVEPOINT active_record_1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction