(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 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.1ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 4ms (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.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 1"], ["key", "Key 1"], ["secret", "Account 1"], ["canvas_account_id", "1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: foo.com\n"], ["created_at", "2016-03-07 15:42:58.767871"], ["updated_at", "2016-03-07 15:42:58.767871"]]  (0.0ms) 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", "2016-03-07 15:42:58.796701"], ["updated_at", "2016-03-07 15:42:58.796701"]]  (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.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.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", "2016-03-07 16:42:58.845239"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:42:58.846449"], ["updated_at", "2016-03-07 15:42:58.846449"]]  (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 69ms (Views: 23.6ms | ActiveRecord: 1.0ms) CoalescingPanda::CanvasApiAuth Load (0.2ms) 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.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.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.1ms) 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", "2016-03-07 15:42:58.899310"], ["updated_at", "2016-03-07 15:42:58.899310"]]  (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", "2016-03-07 15:42:58.958028"], ["updated_at", "2016-03-07 15:42:58.958028"]]  (0.0ms) 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-03-07 15:42:58.960667"], ["updated_at", "2016-03-07 15:42:58.960667"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:42:58.964640"], ["updated_at", "2016-03-07 15:42:58.964640"]]  (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 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-03-07 15:42:58.998458"], ["updated_at", "2016-03-07 15:42:58.998458"]]  (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 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.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 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:42:59.002594"], ["updated_at", "2016-03-07 15:42:59.002594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:42:59.005042"], ["updated_at", "2016-03-07 15:42:59.005042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-03-07 15:42:59.006446"], ["updated_at", "2016-03-07 15:42:59.006446"]]  (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", "2016-03-07 15:42:59.011985"], ["updated_at", "2016-03-07 15:42:59.011985"]]  (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.1ms) 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", "2016-03-07 15:42:59.015176"], ["updated_at", "2016-03-07 15:42:59.015176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:42:59.016994"], ["updated_at", "2016-03-07 15:42:59.016994"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-07 15:42:59.018135"], ["updated_at", "2016-03-07 15:42:59.018135"]]  (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.1ms) 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", "2016-03-07 15:42:59.037890"], ["updated_at", "2016-03-07 15:42:59.037890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.041740"], ["updated_at", "2016-03-07 15:42:59.041740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:42:59.043854"], ["updated_at", "2016-03-07 15:42:59.043854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-03-07 15:42:59.045150"], ["updated_at", "2016-03-07 15:42:59.045150"]]  (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", "2016-03-07 15:42:59.052304"], ["updated_at", "2016-03-07 15:42:59.052304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.055531"], ["updated_at", "2016-03-07 15:42:59.055531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:42:59.057426"], ["updated_at", "2016-03-07 15:42:59.057426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-03-07 15:42:59.058808"], ["updated_at", "2016-03-07 15:42:59.058808"]]  (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", "2016-03-07 15:42:59.063650"], ["updated_at", "2016-03-07 15:42:59.063650"]]  (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", "2016-03-07 15:42:59.067301"], ["updated_at", "2016-03-07 15:42:59.067301"]]  (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", "6"], ["created_at", "2016-03-07 15:42:59.069243"], ["updated_at", "2016-03-07 15:42:59.069243"]]  (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", "6"], ["created_at", "2016-03-07 15:42:59.070478"], ["updated_at", "2016-03-07 15:42:59.070478"]]  (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", "2016-03-07 15:42:59.072114"], ["updated_at", "2016-03-07 15:42:59.072114"]]  (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", "2016-03-07 15:42:59.079883"], ["updated_at", "2016-03-07 15:42:59.079883"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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 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", "2016-03-07 15:42:59.085837"], ["updated_at", "2016-03-07 15:42:59.085837"]]  (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-03-07 15:42:59.089130"], ["updated_at", "2016-03-07 15:42:59.089130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:42:59.091012"], ["updated_at", "2016-03-07 15:42:59.091012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-03-07 15:42:59.092283"], ["updated_at", "2016-03-07 15:42:59.092283"]]  (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", "2016-03-07 15:42:59.098679"], ["updated_at", "2016-03-07 15:42:59.098679"]]  (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.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", "2016-03-08 15:42:59.111298"], ["created_at", "2016-03-07 15:42:59.114305"], ["updated_at", "2016-03-07 15:42:59.114305"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:42:59.123153"], ["updated_at", "2016-03-07 15:42:59.123153"]]  (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", "2016-03-07 15:42:59.125183"], ["updated_at", "2016-03-07 15:42:59.125183"]]  (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", "2016-03-07 15:42:59.126410"], ["updated_at", "2016-03-07 15:42:59.126410"]]  (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.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  (0.0ms) 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.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' 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 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:42:59.139609"], ["updated_at", "2016-03-07 15:42:59.139609"]]  (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.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 17"], ["key", "Key 17"], ["secret", "Account 17"], ["canvas_account_id", "17"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:42:59.144081"], ["updated_at", "2016-03-07 15:42:59.144081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-07 15:42:59.146560"], ["updated_at", "2016-03-07 15:42:59.146560"]]  (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 18' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) 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-03-07 15:42:59.153403"], ["updated_at", "2016-03-07 15:42:59.153403"]]  (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.1ms) 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", "2016-03-07 15:42:59.157632"], ["updated_at", "2016-03-07 15:42:59.157632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:42:59.159914"], ["updated_at", "2016-03-07 15:42:59.159914"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:42:59.164563"], ["updated_at", "2016-03-07 15:42:59.164563"]]  (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", "2016-03-07 15:42:59.168111"], ["updated_at", "2016-03-07 15:42:59.168111"]]  (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", "10"], ["created_at", "2016-03-07 15:42:59.228389"], ["updated_at", "2016-03-07 15:42:59.228389"]]  (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", "2016-03-07 15:42:59.230339"], ["updated_at", "2016-03-07 15:42:59.230339"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 22"], ["key", "Key 22"], ["secret", "Account 22"], ["canvas_account_id", "22"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:42:59.234630"], ["updated_at", "2016-03-07 15:42:59.234630"]]  (0.1ms) 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", 3], ["canvas_term_id", "11"], ["created_at", "2016-03-07 15:42:59.236832"], ["updated_at", "2016-03-07 15:42:59.236832"]]  (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-03-07 15:42:59.238444"], ["updated_at", "2016-03-07 15:42:59.238444"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:42:59.243366"], ["updated_at", "2016-03-07 15:42:59.243366"]]  (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", "2016-03-07 15:42:59.245336"], ["updated_at", "2016-03-07 15:42:59.245336"]]  (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", "2016-03-07 15:42:59.248476"], ["updated_at", "2016-03-07 15:42:59.248476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:42:59.250396"], ["updated_at", "2016-03-07 15:42:59.250396"]]  (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", "2016-03-07 15:42:59.254141"], ["updated_at", "2016-03-07 15:42:59.254141"]]  (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", "2016-03-07 15:42:59.256160"], ["updated_at", "2016-03-07 15:42:59.256160"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:42:59.260530"], ["updated_at", "2016-03-07 15:42:59.260530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.263512"], ["updated_at", "2016-03-07 15:42:59.263512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:42:59.265331"], ["updated_at", "2016-03-07 15:42:59.265331"]]  (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.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", "2016-03-07 15:42:59.277320"], ["updated_at", "2016-03-07 15:42:59.277320"]]  (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", "2016-03-07 15:42:59.279637"], ["updated_at", "2016-03-07 15:42:59.279637"]]  (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-03-07 15:42:59.290365"], ["updated_at", "2016-03-07 15:42:59.290365"]]  (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-03-07 15:42:59.294429"], ["updated_at", "2016-03-07 15:42:59.294429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:42:59.296513"], ["updated_at", "2016-03-07 15:42:59.296513"]]  (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", "2016-03-07 15:42:59.297986"], ["updated_at", "2016-03-07 15:42:59.297986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-03-07 15:42:59.300268"], ["updated_at", "2016-03-07 15:42:59.300268"]]  (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-03-07 15:42:59.309364"], ["updated_at", "2016-03-07 15:42:59.309364"]]  (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-03-07 15:42:59.312004"], ["updated_at", "2016-03-07 15:42:59.312004"]]  (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 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", "2016-03-07 15:42:59.316907"], ["updated_at", "2016-03-07 15:42:59.316907"]]  (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", "2016-03-07 15:42:59.320620"], ["updated_at", "2016-03-07 15:42:59.320620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:42:59.322617"], ["updated_at", "2016-03-07 15:42:59.322617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:42:59.324153"], ["updated_at", "2016-03-07 15:42:59.324153"]]  (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-03-07 15:42:59.325858"], ["updated_at", "2016-03-07 15:42:59.325858"]]  (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 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", "2016-03-07 15:42:59.332987"], ["updated_at", "2016-03-07 15:42:59.332987"]]  (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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-03-07 15:42:59.335579"], ["updated_at", "2016-03-07 15:42:59.335579"]]  (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 35' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:42:59.340508"], ["updated_at", "2016-03-07 15:42:59.340508"]]  (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 36' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:42:59.345083"], ["updated_at", "2016-03-07 15:42:59.345083"]]  (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", "16"], ["created_at", "2016-03-07 15:42:59.347950"], ["updated_at", "2016-03-07 15:42:59.347950"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:42:59.349636"], ["updated_at", "2016-03-07 15:42:59.349636"]]  (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-03-07 15:42:59.350983"], ["updated_at", "2016-03-07 15:42:59.350983"]]  (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", "2016-03-07 15:42:59.356604"], ["updated_at", "2016-03-07 15:42:59.356604"]]  (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-03-07 15:42:59.358576"], ["updated_at", "2016-03-07 15:42:59.358576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:42:59.361225"], ["updated_at", "2016-03-07 15:42:59.361225"]]  (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.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-03-07 15:42:59.364415"], ["updated_at", "2016-03-07 15:42:59.364415"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:42:59.366000"], ["updated_at", "2016-03-07 15:42:59.366000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:42:59.367139"], ["updated_at", "2016-03-07 15:42:59.367139"]]  (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-03-07 15:42:59.368215"], ["updated_at", "2016-03-07 15:42:59.368215"]]  (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", "2016-03-07 15:42:59.369790"], ["updated_at", "2016-03-07 15:42:59.369790"]]  (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", "2016-03-07 15:42:59.372517"], ["updated_at", "2016-03-07 15:42:59.372517"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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-03-07 15:42:59.378815"], ["updated_at", "2016-03-07 15:42:59.378815"]]  (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-03-07 15:42:59.381322"], ["updated_at", "2016-03-07 15:42:59.381322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:42:59.384270"], ["updated_at", "2016-03-07 15:42:59.384270"]]  (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-03-07 15:42:59.388806"], ["updated_at", "2016-03-07 15:42:59.388806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:42:59.390710"], ["updated_at", "2016-03-07 15:42:59.390710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:42:59.391875"], ["updated_at", "2016-03-07 15:42:59.391875"]]  (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-03-07 15:42:59.392982"], ["updated_at", "2016-03-07 15:42:59.392982"]]  (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-03-07 15:42:59.394618"], ["updated_at", "2016-03-07 15:42:59.394618"]]  (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-03-07 15:42:59.396367"], ["updated_at", "2016-03-07 15:42:59.396367"]]  (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 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-03-07 15:42:59.401911"], ["updated_at", "2016-03-07 15:42:59.401911"]]  (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", "2016-03-07 15:42:59.404159"], ["updated_at", "2016-03-07 15:42:59.404159"]]  (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-03-07 15:42:59.407138"], ["updated_at", "2016-03-07 15:42:59.407138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.410036"], ["updated_at", "2016-03-07 15:42:59.410036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:42:59.411614"], ["updated_at", "2016-03-07 15:42:59.411614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:42:59.412817"], ["updated_at", "2016-03-07 15:42:59.412817"]]  (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-03-07 15:42:59.413982"], ["updated_at", "2016-03-07 15:42:59.413982"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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 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", "2016-03-07 15:42:59.426855"], ["updated_at", "2016-03-07 15:42:59.426855"]]  (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", "2016-03-07 15:42:59.430222"], ["updated_at", "2016-03-07 15:42:59.430222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-07 15:42:59.432129"], ["updated_at", "2016-03-07 15:42:59.432129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:42:59.433396"], ["updated_at", "2016-03-07 15:42:59.433396"]]  (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", "2016-03-07 15:42:59.440152"], ["updated_at", "2016-03-07 15:42:59.440152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.443356"], ["updated_at", "2016-03-07 15:42:59.443356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-07 15:42:59.445078"], ["updated_at", "2016-03-07 15:42:59.445078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:42:59.446206"], ["updated_at", "2016-03-07 15:42:59.446206"]]  (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.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-03-07 15:42:59.450894"], ["updated_at", "2016-03-07 15:42:59.450894"]]  (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 52' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' 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 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:42:59.455070"], ["updated_at", "2016-03-07 15:42:59.455070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2016-03-07 15:42:59.457303"], ["updated_at", "2016-03-07 15:42:59.457303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:42:59.458666"], ["updated_at", "2016-03-07 15:42:59.458666"]]  (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", "2016-03-07 15:42:59.460730"], ["updated_at", "2016-03-07 15:42:59.460730"]]  (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", "2016-03-07 15:42:59.462663"], ["updated_at", "2016-03-07 15:42:59.462663"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (1.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 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-03-07 15:42:59.468526"], ["updated_at", "2016-03-07 15:42:59.468526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.471453"], ["updated_at", "2016-03-07 15:42:59.471453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-03-07 15:42:59.473445"], ["updated_at", "2016-03-07 15:42:59.473445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:42:59.474663"], ["updated_at", "2016-03-07 15:42:59.474663"]]  (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.1ms) 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", "2016-03-07 15:42:59.542602"], ["updated_at", "2016-03-07 15:42:59.542602"]]  (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", "2016-03-07 15:42:59.545223"], ["updated_at", "2016-03-07 15:42:59.545223"]]  (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", "2016-03-07 15:42:59.549105"], ["updated_at", "2016-03-07 15:42:59.549105"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.551998"], ["updated_at", "2016-03-07 15:42:59.551998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:42:59.553881"], ["updated_at", "2016-03-07 15:42:59.553881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:42:59.555194"], ["updated_at", "2016-03-07 15:42:59.555194"]]  (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", "2016-03-07 15:42:59.556380"], ["updated_at", "2016-03-07 15:42:59.556380"]]  (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", "2016-03-07 15:42:59.563411"], ["updated_at", "2016-03-07 15:42:59.563411"]]  (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", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-03-07 15:42:59.566048"], ["updated_at", "2016-03-07 15:42:59.566048"]]  (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", "2016-03-07 15:42:59.569253"], ["updated_at", "2016-03-07 15:42:59.569253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:42:59.572456"], ["updated_at", "2016-03-07 15:42:59.572456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:42:59.574107"], ["updated_at", "2016-03-07 15:42:59.574107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-07 15:42:59.575308"], ["updated_at", "2016-03-07 15:42:59.575308"]]  (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-03-07 15:42:59.576627"], ["updated_at", "2016-03-07 15:42:59.576627"]]  (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 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-03-07 15:42:59.583271"], ["updated_at", "2016-03-07 15:42:59.583271"]]  (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-03-07 15:42:59.585726"], ["updated_at", "2016-03-07 15:42:59.585726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.588665"], ["updated_at", "2016-03-07 15:42:59.588665"]]  (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.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", "2016-03-07 15:42:59.591764"], ["updated_at", "2016-03-07 15:42:59.591764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:42:59.593509"], ["updated_at", "2016-03-07 15:42:59.593509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:42:59.594852"], ["updated_at", "2016-03-07 15:42:59.594852"]]  (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-03-07 15:42:59.596275"], ["updated_at", "2016-03-07 15:42:59.596275"]]  (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", "2016-03-07 15:42:59.601810"], ["updated_at", "2016-03-07 15:42:59.601810"]]  (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-03-07 15:42:59.603949"], ["updated_at", "2016-03-07 15:42:59.603949"]]  (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 65' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:42:59.607971"], ["updated_at", "2016-03-07 15:42:59.607971"]]  (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.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", "2016-03-07 15:42:59.611783"], ["updated_at", "2016-03-07 15:42:59.611783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:42:59.613728"], ["updated_at", "2016-03-07 15:42:59.613728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:42:59.615171"], ["updated_at", "2016-03-07 15:42:59.615171"]]  (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-03-07 15:42:59.616449"], ["updated_at", "2016-03-07 15:42:59.616449"]]  (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", "2016-03-07 15:42:59.618226"], ["updated_at", "2016-03-07 15:42:59.618226"]]  (0.0ms) 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", "2016-03-07 15:42:59.621402"], ["updated_at", "2016-03-07 15:42:59.621402"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (0.1ms) 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.1ms) 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", "2016-03-07 15:42:59.628607"], ["updated_at", "2016-03-07 15:42:59.628607"]]  (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", "2016-03-07 15:42:59.631526"], ["updated_at", "2016-03-07 15:42:59.631526"]]  (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.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-03-07 15:42:59.634992"], ["updated_at", "2016-03-07 15:42:59.634992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.637905"], ["updated_at", "2016-03-07 15:42:59.637905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:42:59.639454"], ["updated_at", "2016-03-07 15:42:59.639454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:42:59.640675"], ["updated_at", "2016-03-07 15:42:59.640675"]]  (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-03-07 15:42:59.641847"], ["updated_at", "2016-03-07 15:42:59.641847"]]  (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-03-07 15:42:59.643573"], ["updated_at", "2016-03-07 15:42:59.643573"]]  (0.0ms) 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", "2"], ["created_at", "2016-03-07 15:42:59.645399"], ["updated_at", "2016-03-07 15:42:59.645399"]]  (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", "2016-03-07 15:42:59.651228"], ["updated_at", "2016-03-07 15:42:59.651228"]]  (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-03-07 15:42:59.653238"], ["updated_at", "2016-03-07 15:42:59.653238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:42:59.655858"], ["updated_at", "2016-03-07 15:42:59.655858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.658728"], ["updated_at", "2016-03-07 15:42:59.658728"]]  (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", "29"], ["created_at", "2016-03-07 15:42:59.661593"], ["updated_at", "2016-03-07 15:42:59.661593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:42:59.663289"], ["updated_at", "2016-03-07 15:42:59.663289"]]  (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-03-07 15:42:59.664906"], ["updated_at", "2016-03-07 15:42:59.664906"]]  (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) SAVEPOINT 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-03-07 15:42:59.671481"], ["updated_at", "2016-03-07 15:42:59.671481"]]  (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", "2016-03-07 15:42:59.676579"], ["updated_at", "2016-03-07 15:42:59.676579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:42:59.679428"], ["updated_at", "2016-03-07 15:42:59.679428"]]  (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-03-07 15:42:59.681498"], ["updated_at", "2016-03-07 15:42:59.681498"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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.0ms) SAVEPOINT 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.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-03-07 15:42:59.688671"], ["updated_at", "2016-03-07 15:42:59.688671"]]  (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.2ms) 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", "2016-03-07 15:42:59.696835"], ["updated_at", "2016-03-07 15:42:59.696835"]]  (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 77' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:42:59.703200"], ["updated_at", "2016-03-07 15:42:59.703200"]]  (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-03-07 15:42:59.706048"], ["updated_at", "2016-03-07 15:42:59.706048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test17@test.com"], ["name", "Factory User 17"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:42:59.709284"], ["updated_at", "2016-03-07 15:42:59.709284"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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", "2016-03-07 15:42:59.716015"], ["updated_at", "2016-03-07 15:42:59.716015"]]  (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", "2016-03-07 15:42:59.724956"], ["updated_at", "2016-03-07 15:42:59.724956"]]  (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.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-03-07 15:42:59.764817"], ["updated_at", "2016-03-07 15:42:59.764817"]]  (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-03-07 15:42:59.766938"], ["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", "2016-03-07 15:42:59.773514"], ["updated_at", "2016-03-07 15:42:59.773514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:42:59.776646"], ["updated_at", "2016-03-07 15:42:59.776646"]]  (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-03-07 15:42:59.778286"], ["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", "2016-03-07 15:42:59.783565"], ["updated_at", "2016-03-07 15:42:59.783565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:42:59.850336"], ["updated_at", "2016-03-07 15:42:59.850336"]]  (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", "2016-03-07 15:42:59.852437"], ["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", "2016-03-07 15:42:59.867500"], ["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", "2016-03-07 15:42:59.873013"], ["updated_at", "2016-03-07 15:42:59.873013"]]  (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-03-07 15:42:59.875257"], ["updated_at", "2016-03-07 15:42:59.875257"]]  (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-03-07 15:42:59.877032"], ["updated_at", "2016-03-07 15:42:59.877032"]]  (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-03-07 15:42:59.879470"], ["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-03-07 15:42:59.880843"], ["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", "2016-03-07 15:42:59.886811"], ["updated_at", "2016-03-07 15:42:59.886811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:42:59.890121"], ["updated_at", "2016-03-07 15:42:59.890121"]]  (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-03-07 15:42:59.891540"], ["id", 1]]  (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"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "1"]]  (0.1ms) 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-03-07 15:42:59.896255"], ["updated_at", "2016-03-07 15:42:59.896255"]]  (0.1ms) 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", "2016-03-07 15:42:59.899092"], ["updated_at", "2016-03-07 15:42:59.899092"]]  (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.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", "2016-03-07 15:42:59.906437"], ["updated_at", "2016-03-07 15:42:59.906437"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:42:59.909849"], ["updated_at", "2016-03-07 15:42:59.909849"]]  (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-03-07 15:42:59.911369"], ["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", "2016-03-07 15:42:59.913522"], ["updated_at", "2016-03-07 15:42:59.913522"]]  (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-03-07 15:42:59.915104"], ["updated_at", "2016-03-07 15:42:59.915104"]]  (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-03-07 15:42:59.916668"], ["updated_at", "2016-03-07 15:42:59.916668"]]  (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.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-03-07 15:42:59.923402"], ["updated_at", "2016-03-07 15:42:59.923402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:42:59.926786"], ["updated_at", "2016-03-07 15:42:59.926786"]]  (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-03-07 15:42:59.928338"], ["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", "2016-03-07 15:42:59.933510"], ["updated_at", "2016-03-07 15:42:59.933510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:42:59.936872"], ["updated_at", "2016-03-07 15:42:59.936872"]]  (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-03-07 15:42:59.938303"], ["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.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", "2016-03-07 15:42:59.944947"], ["updated_at", "2016-03-07 15:42:59.944947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:42:59.948066"], ["updated_at", "2016-03-07 15:42:59.948066"]]  (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", "2016-03-07 15:42:59.949592"], ["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", "2016-03-07 15:42:59.952390"], ["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", "2016-03-07 15:42:59.960059"], ["updated_at", "2016-03-07 15:42:59.960059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.963143"], ["updated_at", "2016-03-07 15:42:59.963143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:42:59.965288"], ["updated_at", "2016-03-07 15:42:59.965288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2016-03-07 15:42:59.966658"], ["updated_at", "2016-03-07 15:42:59.966658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:42:59.969524"], ["updated_at", "2016-03-07 15:42:59.969524"]]  (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-03-07 15:42:59.970992"], ["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", "2016-03-07 15:42:59.978702"], ["updated_at", "2016-03-07 15:42:59.978702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:42:59.981754"], ["updated_at", "2016-03-07 15:42:59.981754"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:42:59.983587"], ["updated_at", "2016-03-07 15:42:59.983587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-07 15:42:59.984787"], ["updated_at", "2016-03-07 15:42:59.984787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:42:59.987393"], ["updated_at", "2016-03-07 15:42:59.987393"]]  (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-03-07 15:42:59.988762"], ["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.1ms) 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-03-07 15:42:59.995384"], ["updated_at", "2016-03-07 15:42:59.995384"]]  (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.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", "2016-03-07 15:42:59.998764"], ["updated_at", "2016-03-07 15:42:59.998764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2016-03-07 15:43:00.001031"], ["updated_at", "2016-03-07 15:43:00.001031"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:43:00.002409"], ["updated_at", "2016-03-07 15:43:00.002409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.005239"], ["updated_at", "2016-03-07 15:43:00.005239"]]  (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", "2016-03-07 15:43:00.006718"], ["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-03-07 15:43:00.014320"], ["updated_at", "2016-03-07 15:43:00.014320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:43:00.017738"], ["updated_at", "2016-03-07 15:43:00.017738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:43:00.019842"], ["updated_at", "2016-03-07 15:43:00.019842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2016-03-07 15:43:00.021254"], ["updated_at", "2016-03-07 15:43:00.021254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.024082"], ["updated_at", "2016-03-07 15:43:00.024082"]]  (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-03-07 15:43:00.025665"], ["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", "2016-03-07 15:43:00.033367"], ["updated_at", "2016-03-07 15:43:00.033367"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:43:00.036317"], ["updated_at", "2016-03-07 15:43:00.036317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-03-07 15:43:00.038009"], ["updated_at", "2016-03-07 15:43:00.038009"]]  (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", "2016-03-07 15:43:00.039307"], ["updated_at", "2016-03-07 15:43:00.039307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.041669"], ["updated_at", "2016-03-07 15:43:00.041669"]]  (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-03-07 15:43:00.043051"], ["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", "2016-03-07 15:43:00.051153"], ["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-03-07 15:43:00.056117"], ["updated_at", "2016-03-07 15:43:00.056117"]]  (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-03-07 15:43:00.059413"], ["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", "2016-03-07 15:43:00.063444"], ["updated_at", "2016-03-07 15:43:00.063444"]]  (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-03-07 15:43:00.065902"], ["updated_at", "2016-03-07 15:43:00.065902"]]  (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.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-03-07 15:43:00.135183"], ["updated_at", "2016-03-07 15:43:00.135183"]]  (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-03-07 15:43:00.149002"], ["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.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", "2016-03-07 15:43:00.167303"], ["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 (1.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-03-07 15:43:00.172651"], ["updated_at", "2016-03-07 15:43:00.172651"]]  (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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2016-03-07 15:43:00.177157"], ["id", 1]]  (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.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", "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.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]]  (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-03-07 15:43:00.202822"], ["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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2016-03-07 15:43:00.206258"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.6ms) SELECT "coalescing_panda_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.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"."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", "2016-03-07 15:43:00.224718"], ["updated_at", "2016-03-07 15:43:00.224718"]]  (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.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-03-07 15:43:00.230055"], ["updated_at", "2016-03-07 15:43:00.230055"]]  (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"."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", "2016-03-07 15:43:00.233120"], ["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.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.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2016-03-07 15:43:00.249799"], ["updated_at", "2016-03-07 15:43:00.249799"]]  (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.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"]]  (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-03-07 15:43:00.255542"], ["updated_at", "2016-03-07 15:43:00.255542"]]  (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.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.1ms) SAVEPOINT active_record_1  (0.1ms) 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  (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.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", 100.0], ["updated_at", "2016-03-07 15:43:00.265391"], ["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-03-07 15:43:00.266947"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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", "2016-03-07 15:43:00.275423"], ["updated_at", "2016-03-07 15:43:00.275423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:43:00.278678"], ["updated_at", "2016-03-07 15:43:00.278678"]]  (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", "36"], ["created_at", "2016-03-07 15:43:00.281024"], ["updated_at", "2016-03-07 15:43:00.281024"]]  (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", "31"], ["created_at", "2016-03-07 15:43:00.283406"], ["updated_at", "2016-03-07 15:43:00.283406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.286949"], ["updated_at", "2016-03-07 15:43:00.286949"]]  (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-03-07 15:43:00.288781"], ["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-03-07 15:43:00.291375"], ["updated_at", "2016-03-07 15:43:00.291375"]]  (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.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", "2016-03-07 15:43:00.299339"], ["updated_at", "2016-03-07 15:43:00.299339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:43:00.302591"], ["updated_at", "2016-03-07 15:43:00.302591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:43:00.304392"], ["updated_at", "2016-03-07 15:43:00.304392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-07 15:43:00.305752"], ["updated_at", "2016-03-07 15:43:00.305752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.308314"], ["updated_at", "2016-03-07 15:43:00.308314"]]  (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-03-07 15:43:00.309692"], ["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", "2016-03-07 15:43:00.311891"], ["updated_at", "2016-03-07 15:43:00.311891"]]  (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", "2016-03-07 15:43:00.313567"], ["updated_at", "2016-03-07 15:43:00.313567"]]  (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-03-07 15:43:00.315198"], ["updated_at", "2016-03-07 15:43:00.315198"]]  (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.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", "2016-03-07 15:43:00.325389"], ["updated_at", "2016-03-07 15:43:00.325389"]]  (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.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-03-07 15:43:00.328710"], ["updated_at", "2016-03-07 15:43:00.328710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:43:00.330864"], ["updated_at", "2016-03-07 15:43:00.330864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-07 15:43:00.332148"], ["updated_at", "2016-03-07 15:43:00.332148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.335506"], ["updated_at", "2016-03-07 15:43:00.335506"]]  (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-03-07 15:43:00.337100"], ["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", "2016-03-07 15:43:00.406630"], ["updated_at", "2016-03-07 15:43:00.406630"]]  (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-03-07 15:43:00.409382"], ["updated_at", "2016-03-07 15:43:00.409382"]]  (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-03-07 15:43:00.411171"], ["updated_at", "2016-03-07 15:43:00.411171"]]  (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-03-07 15:43:00.412883"], ["updated_at", "2016-03-07 15:43:00.412883"]]  (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.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  (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 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", "2016-03-07 15:43:00.436414"], ["updated_at", "2016-03-07 15:43:00.436414"]]  (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 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.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 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:43:00.440779"], ["updated_at", "2016-03-07 15:43:00.440779"]]  (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", "39"], ["created_at", "2016-03-07 15:43:00.443893"], ["updated_at", "2016-03-07 15:43:00.443893"]]  (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", "34"], ["created_at", "2016-03-07 15:43:00.446635"], ["updated_at", "2016-03-07 15:43:00.446635"]]  (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.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", "2016-03-07 15:43:00.452957"], ["updated_at", "2016-03-07 15:43:00.452957"]]  (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-03-07 15:43:00.456268"], ["id", 1]]  (0.1ms) 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-03-07 15:43:00.469376"], ["updated_at", "2016-03-07 15:43:00.469376"]]  (0.0ms) 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.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-03-07 15:43:00.480561"], ["updated_at", "2016-03-07 15:43:00.480561"]]  (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.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-03-07 15:43:00.483835"], ["updated_at", "2016-03-07 15:43:00.483835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:43:00.485945"], ["updated_at", "2016-03-07 15:43:00.485945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2016-03-07 15:43:00.487597"], ["updated_at", "2016-03-07 15:43:00.487597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.490284"], ["updated_at", "2016-03-07 15:43:00.490284"]]  (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-03-07 15:43:00.491764"], ["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-03-07 15:43:00.493991"], ["updated_at", "2016-03-07 15:43:00.493991"]]  (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.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.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.7ms) 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", "2016-03-07 15:43:00.518188"], ["updated_at", "2016-03-07 15:43:00.518188"]]  (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.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", "2016-03-07 15:43:00.522696"], ["updated_at", "2016-03-07 15:43:00.522696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-07 15:43:00.525132"], ["updated_at", "2016-03-07 15:43:00.525132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:43:00.526861"], ["updated_at", "2016-03-07 15:43:00.526861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.529770"], ["updated_at", "2016-03-07 15:43:00.529770"]]  (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-03-07 15:43:00.531793"], ["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.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2016-03-07 15:43:00.534978"], ["updated_at", "2016-03-07 15:43:00.534978"]]  (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.2ms) 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", "2016-03-07 15:43:00.549644"], ["updated_at", "2016-03-07 15:43:00.549644"]]  (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 110' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:43:00.555954"], ["updated_at", "2016-03-07 15:43:00.555954"]]  (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", "42"], ["created_at", "2016-03-07 15:43:00.558876"], ["updated_at", "2016-03-07 15:43:00.558876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "37"], ["created_at", "2016-03-07 15:43:00.561307"], ["updated_at", "2016-03-07 15:43:00.561307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.565373"], ["updated_at", "2016-03-07 15:43:00.565373"]]  (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-03-07 15:43:00.566960"], ["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-03-07 15:43:00.569169"], ["updated_at", "2016-03-07 15:43:00.569169"]]  (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-03-07 15:43:00.571305"], ["updated_at", "2016-03-07 15:43:00.571305"]]  (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-03-07 15:43:00.573130"], ["updated_at", "2016-03-07 15:43:00.573130"]]  (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-03-07 15:43:00.575189"], ["updated_at", "2016-03-07 15:43:00.575189"]]  (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.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.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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (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", "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-03-07 15:43:00.607895"], ["updated_at", "2016-03-07 15:43:00.607895"]]  (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", "2016-03-07 15:43:00.610870"], ["updated_at", "2016-03-07 15:43:00.610870"]]  (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", "2016-03-07 15:43:00.613836"], ["updated_at", "2016-03-07 15:43:00.613836"]]  (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", "2016-03-07 15:43:00.617086"], ["updated_at", "2016-03-07 15:43:00.617086"]]  (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.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", "2016-03-07 15:43:00.625275"], ["updated_at", "2016-03-07 15:43:00.625275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:43:00.628300"], ["updated_at", "2016-03-07 15:43:00.628300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-03-07 15:43:00.630233"], ["updated_at", "2016-03-07 15:43:00.630233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:43:00.631390"], ["updated_at", "2016-03-07 15:43:00.631390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.633869"], ["updated_at", "2016-03-07 15:43:00.633869"]]  (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-03-07 15:43:00.635536"], ["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-03-07 15:43:00.702059"], ["updated_at", "2016-03-07 15:43:00.702059"]]  (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.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.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", "2016-03-07 15:43:00.707494"], ["updated_at", "2016-03-07 15:43:00.707494"]]  (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-03-07 15:43:00.710849"], ["updated_at", "2016-03-07 15:43:00.710849"]]  (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.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", "2016-03-07 15:43:00.720217"], ["updated_at", "2016-03-07 15:43:00.720217"]]  (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 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", "2016-03-07 15:43:00.724973"], ["updated_at", "2016-03-07 15:43:00.724973"]]  (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", "44"], ["created_at", "2016-03-07 15:43:00.727334"], ["updated_at", "2016-03-07 15:43:00.727334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:43:00.728698"], ["updated_at", "2016-03-07 15:43:00.728698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.732468"], ["updated_at", "2016-03-07 15:43:00.732468"]]  (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-03-07 15:43:00.734935"], ["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-03-07 15:43:00.737586"], ["updated_at", "2016-03-07 15:43:00.737586"]]  (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.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-03-07 15:43:00.741733"], ["updated_at", "2016-03-07 15:43:00.741733"]]  (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.5ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:43:00.745085"], ["updated_at", "2016-03-07 15:43:00.745085"]]  (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-03-07 15:43:00.747944"], ["updated_at", "2016-03-07 15:43:00.747944"]]  (0.1ms) 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.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.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.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.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.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-03-07 15:43:00.772136"], ["updated_at", "2016-03-07 15:43:00.772136"]]  (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-03-07 15:43:00.774861"], ["updated_at", "2016-03-07 15:43:00.774861"]]  (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.8ms) 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", "2016-03-07 15:43:00.783932"], ["updated_at", "2016-03-07 15:43:00.783932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:43:00.787148"], ["updated_at", "2016-03-07 15:43:00.787148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:43:00.788971"], ["updated_at", "2016-03-07 15:43:00.788971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-03-07 15:43:00.790210"], ["updated_at", "2016-03-07 15:43:00.790210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.793259"], ["updated_at", "2016-03-07 15:43:00.793259"]]  (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-03-07 15:43:00.795124"], ["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-03-07 15:43:00.799671"], ["updated_at", "2016-03-07 15:43:00.799671"]]  (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-03-07 15:43:00.802228"], ["updated_at", "2016-03-07 15:43:00.802228"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.7ms) 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", "2016-03-07 15:43:00.809927"], ["updated_at", "2016-03-07 15:43:00.809927"]]  (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", "2016-03-07 15:43:00.813088"], ["updated_at", "2016-03-07 15:43:00.813088"]]  (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", "46"], ["created_at", "2016-03-07 15:43:00.815697"], ["updated_at", "2016-03-07 15:43:00.815697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-07 15:43:00.817216"], ["updated_at", "2016-03-07 15:43:00.817216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.820331"], ["updated_at", "2016-03-07 15:43:00.820331"]]  (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-03-07 15:43:00.821870"], ["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-03-07 15:43:00.824775"], ["updated_at", "2016-03-07 15:43:00.824775"]]  (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-03-07 15:43:00.827542"], ["updated_at", "2016-03-07 15:43:00.827542"]]  (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-03-07 15:43:00.829443"], ["updated_at", "2016-03-07 15:43:00.829443"]]  (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-03-07 15:43:00.831623"], ["updated_at", "2016-03-07 15:43:00.831623"]]  (0.1ms) 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.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-03-07 15:43:00.850449"], ["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.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  (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.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 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-03-07 15:43:00.870449"], ["updated_at", "2016-03-07 15:43:00.870449"]]  (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.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", "2016-03-07 15:43:00.873800"], ["updated_at", "2016-03-07 15:43:00.873800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-07 15:43:00.875607"], ["updated_at", "2016-03-07 15:43:00.875607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:43:00.876776"], ["updated_at", "2016-03-07 15:43:00.876776"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.879292"], ["updated_at", "2016-03-07 15:43:00.879292"]]  (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-03-07 15:43:00.880764"], ["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-03-07 15:43:00.883836"], ["updated_at", "2016-03-07 15:43:00.883836"]]  (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-03-07 15:43:00.886711"], ["updated_at", "2016-03-07 15:43:00.886711"]]  (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-03-07 15:43:00.888260"], ["updated_at", "2016-03-07 15:43:00.888260"]]  (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", "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-03-07 15:43:00.890235"], ["updated_at", "2016-03-07 15:43:00.890235"]]  (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.1ms) 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", "2016-03-07 15:43:00.906592"], ["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.0ms) SAVEPOINT active_record_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", "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.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 (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 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:43:00.925025"], ["updated_at", "2016-03-07 15:43:00.925025"]]  (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 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", "2016-03-07 15:43:00.990161"], ["updated_at", "2016-03-07 15:43:00.990161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-07 15:43:00.992288"], ["updated_at", "2016-03-07 15:43:00.992288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:43:00.993472"], ["updated_at", "2016-03-07 15:43:00.993472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:00.996060"], ["updated_at", "2016-03-07 15:43:00.996060"]]  (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-03-07 15:43:00.997529"], ["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-03-07 15:43:00.999745"], ["updated_at", "2016-03-07 15:43:00.999745"]]  (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-03-07 15:43:01.002899"], ["updated_at", "2016-03-07 15:43:01.002899"]]  (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-03-07 15:43:01.004762"], ["updated_at", "2016-03-07 15:43:01.004762"]]  (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-03-07 15:43:01.006464"], ["updated_at", "2016-03-07 15:43:01.006464"]]  (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.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-03-07 15:43:01.024353"], ["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.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.5ms) 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", "2016-03-07 15:43:01.041818"], ["updated_at", "2016-03-07 15:43:01.041818"]]  (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.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 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:43:01.045231"], ["updated_at", "2016-03-07 15:43:01.045231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:43:01.047226"], ["updated_at", "2016-03-07 15:43:01.047226"]]  (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", "44"], ["created_at", "2016-03-07 15:43:01.048555"], ["updated_at", "2016-03-07 15:43:01.048555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:01.051023"], ["updated_at", "2016-03-07 15:43:01.051023"]]  (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-03-07 15:43:01.052405"], ["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-03-07 15:43:01.054744"], ["updated_at", "2016-03-07 15:43:01.054744"]]  (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-03-07 15:43:01.056885"], ["updated_at", "2016-03-07 15:43:01.056885"]]  (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-03-07 15:43:01.058733"], ["updated_at", "2016-03-07 15:43:01.058733"]]  (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-03-07 15:43:01.060388"], ["updated_at", "2016-03-07 15:43:01.060388"]]  (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", "2016-03-07 15:43:01.075486"], ["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-03-07 15:43:01.081076"], ["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.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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:43:01.090607"], ["updated_at", "2016-03-07 15:43:01.090607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:43:01.093554"], ["updated_at", "2016-03-07 15:43:01.093554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-03-07 15:43:01.095694"], ["updated_at", "2016-03-07 15:43:01.095694"]]  (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", "45"], ["created_at", "2016-03-07 15:43:01.098034"], ["updated_at", "2016-03-07 15:43:01.098034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:01.101783"], ["updated_at", "2016-03-07 15:43:01.101783"]]  (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-03-07 15:43:01.103672"], ["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.1ms) 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-03-07 15:43:01.111680"], ["updated_at", "2016-03-07 15:43:01.111680"]]  (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", "2016-03-07 15:43:01.115454"], ["updated_at", "2016-03-07 15:43:01.115454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:43:01.117692"], ["updated_at", "2016-03-07 15:43:01.117692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2016-03-07 15:43:01.118964"], ["updated_at", "2016-03-07 15:43:01.118964"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:01.121984"], ["updated_at", "2016-03-07 15:43:01.121984"]]  (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-03-07 15:43:01.123748"], ["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", "2016-03-07 15:43:01.133965"], ["updated_at", "2016-03-07 15:43:01.133965"]]  (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", "2016-03-07 15:43:01.137707"], ["updated_at", "2016-03-07 15:43:01.137707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2016-03-07 15:43:01.139773"], ["updated_at", "2016-03-07 15:43:01.139773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:43:01.141003"], ["updated_at", "2016-03-07 15:43:01.141003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:01.143583"], ["updated_at", "2016-03-07 15:43:01.143583"]]  (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-03-07 15:43:01.145278"], ["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 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", "2016-03-07 15:43:01.153540"], ["updated_at", "2016-03-07 15:43:01.153540"]]  (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.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", "2016-03-07 15:43:01.157103"], ["updated_at", "2016-03-07 15:43:01.157103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:43:01.159062"], ["updated_at", "2016-03-07 15:43:01.159062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-07 15:43:01.160361"], ["updated_at", "2016-03-07 15:43:01.160361"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:01.163237"], ["updated_at", "2016-03-07 15:43:01.163237"]]  (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-03-07 15:43:01.164854"], ["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 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", "2016-03-07 15:43:01.173755"], ["updated_at", "2016-03-07 15:43:01.173755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:43:01.177241"], ["updated_at", "2016-03-07 15:43:01.177241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2016-03-07 15:43:01.179526"], ["updated_at", "2016-03-07 15:43:01.179526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:43:01.180974"], ["updated_at", "2016-03-07 15:43:01.180974"]]  (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-03-07 15:43:01.184367"], ["updated_at", "2016-03-07 15:43:01.184367"]]  (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-03-07 15:43:01.185960"], ["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.1ms) 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-03-07 15:43:01.193818"], ["updated_at", "2016-03-07 15:43:01.193818"]]  (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.1ms) 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", "2016-03-07 15:43:01.197457"], ["updated_at", "2016-03-07 15:43:01.197457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:43:01.199577"], ["updated_at", "2016-03-07 15:43:01.199577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-03-07 15:43:01.200893"], ["updated_at", "2016-03-07 15:43:01.200893"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:01.203486"], ["updated_at", "2016-03-07 15:43:01.203486"]]  (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-03-07 15:43:01.268284"], ["id", 1]]  (0.1ms) 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 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", "2016-03-07 15:43:01.276782"], ["updated_at", "2016-03-07 15:43:01.276782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:43:01.279978"], ["updated_at", "2016-03-07 15:43:01.279978"]]  (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", "56"], ["created_at", "2016-03-07 15:43:01.282033"], ["updated_at", "2016-03-07 15:43:01.282033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:43:01.283961"], ["updated_at", "2016-03-07 15:43:01.283961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:01.287368"], ["updated_at", "2016-03-07 15:43:01.287368"]]  (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-03-07 15:43:01.289106"], ["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", "2016-03-07 15:43:01.296802"], ["updated_at", "2016-03-07 15:43:01.296802"]]  (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", "2016-03-07 15:43:01.300365"], ["updated_at", "2016-03-07 15:43:01.300365"]]  (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", "57"], ["created_at", "2016-03-07 15:43:01.302398"], ["updated_at", "2016-03-07 15:43:01.302398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2016-03-07 15:43:01.303882"], ["updated_at", "2016-03-07 15:43:01.303882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:43:01.306541"], ["updated_at", "2016-03-07 15:43:01.306541"]]  (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-03-07 15:43:01.308354"], ["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  (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.2ms) INSERT INTO "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-03-07 15:43:01.320223"], ["updated_at", "2016-03-07 15:43:01.320223"]]  (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.1ms) 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", "2016-03-07 15:43:01.325270"], ["updated_at", "2016-03-07 15:43:01.325270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:43:01.327320"], ["updated_at", "2016-03-07 15:43:01.327320"]]  (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", "2016-03-07 15:43:01.328546"], ["updated_at", "2016-03-07 15:43:01.328546"]]  (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-03-07 15:43:01.331974"], ["updated_at", "2016-03-07 15:43:01.331974"]]  (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-03-07 15:43:01.334047"], ["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", "2016-03-07 15:43:01.337534"], ["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"  (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 Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 1ms (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-03-07 15:46:08.451485"], ["updated_at", "2016-03-07 15:46:08.451485"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:46:08.469593"], ["updated_at", "2016-03-07 15:46:08.469593"]]  (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.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", "2016-03-07 16:46:08.493746"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:46:08.495161"], ["updated_at", "2016-03-07 15:46:08.495161"]]  (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 32ms (Views: 9.6ms | 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"]]  (1.1ms) 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.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.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", "2016-03-07 15:46:08.533434"], ["updated_at", "2016-03-07 15:46:08.533434"]]  (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", "2016-03-07 15:46:08.596820"], ["updated_at", "2016-03-07 15:46:08.596820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", "2016-03-07 15:46:08.599833"], ["updated_at", "2016-03-07 15:46:08.599833"]]  (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", "2016-03-07 15:46:08.602368"], ["updated_at", "2016-03-07 15:46:08.602368"]]  (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 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-03-07 15:46:08.614827"], ["updated_at", "2016-03-07 15:46:08.614827"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:08.618333"], ["updated_at", "2016-03-07 15:46:08.618333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:08.620334"], ["updated_at", "2016-03-07 15:46:08.620334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-03-07 15:46:08.621716"], ["updated_at", "2016-03-07 15:46:08.621716"]]  (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", "2016-03-07 15:46:08.627014"], ["updated_at", "2016-03-07 15:46:08.627014"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 7"], ["key", "Key 7"], ["secret", "Account 7"], ["canvas_account_id", "7"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:08.630285"], ["updated_at", "2016-03-07 15:46:08.630285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:08.632111"], ["updated_at", "2016-03-07 15:46:08.632111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-07 15:46:08.633279"], ["updated_at", "2016-03-07 15:46:08.633279"]]  (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 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-03-07 15:46:08.652484"], ["updated_at", "2016-03-07 15:46:08.652484"]]  (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 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.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", "2016-03-07 15:46:08.657640"], ["updated_at", "2016-03-07 15:46:08.657640"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:08.660236"], ["updated_at", "2016-03-07 15:46:08.660236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-03-07 15:46:08.661806"], ["updated_at", "2016-03-07 15:46:08.661806"]]  (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 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", "2016-03-07 15:46:08.668578"], ["updated_at", "2016-03-07 15:46:08.668578"]]  (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", "2016-03-07 15:46:08.672276"], ["updated_at", "2016-03-07 15:46:08.672276"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:08.674704"], ["updated_at", "2016-03-07 15:46:08.674704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-03-07 15:46:08.676533"], ["updated_at", "2016-03-07 15:46:08.676533"]]  (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-03-07 15:46:08.682148"], ["updated_at", "2016-03-07 15:46:08.682148"]]  (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", "2016-03-07 15:46:08.685797"], ["updated_at", "2016-03-07 15:46:08.685797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:08.688047"], ["updated_at", "2016-03-07 15:46:08.688047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-03-07 15:46:08.690829"], ["updated_at", "2016-03-07 15:46:08.690829"]]  (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", "2016-03-07 15:46:08.692797"], ["updated_at", "2016-03-07 15:46:08.692797"]]  (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", "2016-03-07 15:46:08.697286"], ["updated_at", "2016-03-07 15:46:08.697286"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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.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-03-07 15:46:08.702579"], ["updated_at", "2016-03-07 15:46:08.702579"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:08.706227"], ["updated_at", "2016-03-07 15:46:08.706227"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:08.708044"], ["updated_at", "2016-03-07 15:46:08.708044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-03-07 15:46:08.709173"], ["updated_at", "2016-03-07 15:46:08.709173"]]  (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.3ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2016-03-07 15:46:08.715701"], ["updated_at", "2016-03-07 15:46:08.715701"]]  (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  (1.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 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-03-08 15:46:08.729229"], ["created_at", "2016-03-07 15:46:08.730467"], ["updated_at", "2016-03-07 15:46:08.730467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (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-03-07 15:46:08.739897"], ["updated_at", "2016-03-07 15:46:08.739897"]]  (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", "2016-03-07 15:46:08.741903"], ["updated_at", "2016-03-07 15:46:08.741903"]]  (0.1ms) 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", "2016-03-07 15:46:08.743391"], ["updated_at", "2016-03-07 15:46:08.743391"]]  (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.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 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:46:08.753668"], ["updated_at", "2016-03-07 15:46:08.753668"]]  (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 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-03-07 15:46:08.757864"], ["updated_at", "2016-03-07 15:46:08.757864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-07 15:46:08.759846"], ["updated_at", "2016-03-07 15:46:08.759846"]]  (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 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-03-07 15:46:08.765249"], ["updated_at", "2016-03-07 15:46:08.765249"]]  (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.1ms) 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-03-07 15:46:08.769273"], ["updated_at", "2016-03-07 15:46:08.769273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:08.771798"], ["updated_at", "2016-03-07 15:46:08.771798"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:08.835838"], ["updated_at", "2016-03-07 15:46:08.835838"]]  (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", "2016-03-07 15:46:08.840387"], ["updated_at", "2016-03-07 15:46:08.840387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2016-03-07 15:46:08.843131"], ["updated_at", "2016-03-07 15:46:08.843131"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:46:08.844710"], ["updated_at", "2016-03-07 15:46:08.844710"]]  (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", "2016-03-07 15:46:08.848514"], ["updated_at", "2016-03-07 15:46:08.848514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:46:08.850742"], ["updated_at", "2016-03-07 15:46:08.850742"]]  (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-03-07 15:46:08.852740"], ["updated_at", "2016-03-07 15:46:08.852740"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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-03-07 15:46:08.859494"], ["updated_at", "2016-03-07 15:46:08.859494"]]  (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", 1], ["canvas_term_id", "12"], ["created_at", "2016-03-07 15:46:08.862155"], ["updated_at", "2016-03-07 15:46:08.862155"]]  (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-03-07 15:46:08.867360"], ["updated_at", "2016-03-07 15:46:08.867360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:46:08.869902"], ["updated_at", "2016-03-07 15:46:08.869902"]]  (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", "2016-03-07 15:46:08.873429"], ["updated_at", "2016-03-07 15:46:08.873429"]]  (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", "2016-03-07 15:46:08.875609"], ["updated_at", "2016-03-07 15:46:08.875609"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:46:08.880901"], ["updated_at", "2016-03-07 15:46:08.880901"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:46:08.884098"], ["updated_at", "2016-03-07 15:46:08.884098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:08.886000"], ["updated_at", "2016-03-07 15:46:08.886000"]]  (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.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", "2016-03-07 15:46:08.900606"], ["updated_at", "2016-03-07 15:46:08.900606"]]  (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", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2016-03-07 15:46:08.903354"], ["updated_at", "2016-03-07 15:46:08.903354"]]  (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.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", "2016-03-07 15:46:08.916144"], ["updated_at", "2016-03-07 15:46:08.916144"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:46:08.919580"], ["updated_at", "2016-03-07 15:46:08.919580"]]  (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", "14"], ["created_at", "2016-03-07 15:46:08.922261"], ["updated_at", "2016-03-07 15:46:08.922261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:08.923595"], ["updated_at", "2016-03-07 15:46:08.923595"]]  (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", "2016-03-07 15:46:08.925517"], ["updated_at", "2016-03-07 15:46:08.925517"]]  (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", "2016-03-07 15:46:08.932480"], ["updated_at", "2016-03-07 15:46:08.932480"]]  (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", "2016-03-07 15:46:08.934536"], ["updated_at", "2016-03-07 15:46:08.934536"]]  (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 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-03-07 15:46:08.937359"], ["updated_at", "2016-03-07 15:46:08.937359"]]  (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.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", "2016-03-07 15:46:08.940729"], ["updated_at", "2016-03-07 15:46:08.940729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:46:08.942447"], ["updated_at", "2016-03-07 15:46:08.942447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:46:08.943765"], ["updated_at", "2016-03-07 15:46:08.943765"]]  (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-03-07 15:46:08.945098"], ["updated_at", "2016-03-07 15:46:08.945098"]]  (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.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 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:08.951670"], ["updated_at", "2016-03-07 15:46:08.951670"]]  (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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-03-07 15:46:08.954419"], ["updated_at", "2016-03-07 15:46:08.954419"]]  (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.1ms) 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-03-07 15:46:08.959133"], ["updated_at", "2016-03-07 15:46:08.959133"]]  (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.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", "2016-03-07 15:46:08.962528"], ["updated_at", "2016-03-07 15:46:08.962528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:46:08.964440"], ["updated_at", "2016-03-07 15:46:08.964440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:08.965963"], ["updated_at", "2016-03-07 15:46:08.965963"]]  (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-03-07 15:46:08.967379"], ["updated_at", "2016-03-07 15:46:08.967379"]]  (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-03-07 15:46:08.972603"], ["updated_at", "2016-03-07 15:46:08.972603"]]  (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", "2016-03-07 15:46:08.974608"], ["updated_at", "2016-03-07 15:46:08.974608"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:46:08.977256"], ["updated_at", "2016-03-07 15:46:08.977256"]]  (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 (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", "2016-03-07 15:46:08.981488"], ["updated_at", "2016-03-07 15:46:08.981488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:46:08.983395"], ["updated_at", "2016-03-07 15:46:08.983395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:46:08.984638"], ["updated_at", "2016-03-07 15:46:08.984638"]]  (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-03-07 15:46:08.986175"], ["updated_at", "2016-03-07 15:46:08.986175"]]  (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", "2016-03-07 15:46:08.989106"], ["updated_at", "2016-03-07 15:46:08.989106"]]  (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", "2016-03-07 15:46:08.992057"], ["updated_at", "2016-03-07 15:46:08.992057"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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-03-07 15:46:08.997271"], ["updated_at", "2016-03-07 15:46:08.997271"]]  (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-03-07 15:46:08.999345"], ["updated_at", "2016-03-07 15:46:08.999345"]]  (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 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-03-07 15:46:09.002269"], ["updated_at", "2016-03-07 15:46:09.002269"]]  (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", "2016-03-07 15:46:09.005561"], ["updated_at", "2016-03-07 15:46:09.005561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:46:09.007272"], ["updated_at", "2016-03-07 15:46:09.007272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:09.008425"], ["updated_at", "2016-03-07 15:46:09.008425"]]  (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-03-07 15:46:09.009563"], ["updated_at", "2016-03-07 15:46:09.009563"]]  (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-03-07 15:46:09.011075"], ["updated_at", "2016-03-07 15:46:09.011075"]]  (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", "6"], ["enrollment_type", "TeacherEnrollment"], ["created_at", "2016-03-07 15:46:09.013201"], ["updated_at", "2016-03-07 15:46:09.013201"]]  (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.1ms) 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-03-07 15:46:09.019500"], ["updated_at", "2016-03-07 15:46:09.019500"]]  (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", "2016-03-07 15:46:09.021693"], ["updated_at", "2016-03-07 15:46:09.021693"]]  (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.1ms) 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-03-07 15:46:09.024869"], ["updated_at", "2016-03-07 15:46:09.024869"]]  (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.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", "2016-03-07 15:46:09.028281"], ["updated_at", "2016-03-07 15:46:09.028281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:46:09.029936"], ["updated_at", "2016-03-07 15:46:09.029936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:46:09.031265"], ["updated_at", "2016-03-07 15:46:09.031265"]]  (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-03-07 15:46:09.032742"], ["updated_at", "2016-03-07 15:46:09.032742"]]  (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) 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", "2016-03-07 15:46:09.047457"], ["updated_at", "2016-03-07 15:46:09.047457"]]  (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-03-07 15:46:09.051133"], ["updated_at", "2016-03-07 15:46:09.051133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-07 15:46:09.053228"], ["updated_at", "2016-03-07 15:46:09.053228"]]  (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", "16"], ["created_at", "2016-03-07 15:46:09.054770"], ["updated_at", "2016-03-07 15:46:09.054770"]]  (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.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-03-07 15:46:09.061358"], ["updated_at", "2016-03-07 15:46:09.061358"]]  (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", "2016-03-07 15:46:09.064937"], ["updated_at", "2016-03-07 15:46:09.064937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-07 15:46:09.066958"], ["updated_at", "2016-03-07 15:46:09.066958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:09.068248"], ["updated_at", "2016-03-07 15:46:09.068248"]]  (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", "2016-03-07 15:46:09.073588"], ["updated_at", "2016-03-07 15:46:09.073588"]]  (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 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-03-07 15:46:09.077196"], ["updated_at", "2016-03-07 15:46:09.077196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2016-03-07 15:46:09.079292"], ["updated_at", "2016-03-07 15:46:09.079292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:09.080597"], ["updated_at", "2016-03-07 15:46:09.080597"]]  (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-03-07 15:46:09.082297"], ["updated_at", "2016-03-07 15:46:09.082297"]]  (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-03-07 15:46:09.084151"], ["updated_at", "2016-03-07 15:46:09.084151"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (0.0ms) ROLLBACK TO 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 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:46:09.091107"], ["updated_at", "2016-03-07 15:46:09.091107"]]  (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.1ms) 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", "2016-03-07 15:46:09.095060"], ["updated_at", "2016-03-07 15:46:09.095060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-03-07 15:46:09.097145"], ["updated_at", "2016-03-07 15:46:09.097145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:09.098441"], ["updated_at", "2016-03-07 15:46:09.098441"]]  (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) SAVEPOINT 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-03-07 15:46:09.174878"], ["updated_at", "2016-03-07 15:46:09.174878"]]  (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-03-07 15:46:09.177234"], ["updated_at", "2016-03-07 15:46:09.177234"]]  (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-03-07 15:46:09.182606"], ["updated_at", "2016-03-07 15:46:09.182606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) 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", "2016-03-07 15:46:09.186243"], ["updated_at", "2016-03-07 15:46:09.186243"]]  (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", 3], ["canvas_term_id", "24"], ["created_at", "2016-03-07 15:46:09.188077"], ["updated_at", "2016-03-07 15:46:09.188077"]]  (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", "20"], ["created_at", "2016-03-07 15:46:09.190572"], ["updated_at", "2016-03-07 15:46:09.190572"]]  (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", "2016-03-07 15:46:09.192477"], ["updated_at", "2016-03-07 15:46:09.192477"]]  (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 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-03-07 15:46:09.200645"], ["updated_at", "2016-03-07 15:46:09.200645"]]  (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-03-07 15:46:09.202890"], ["updated_at", "2016-03-07 15:46:09.202890"]]  (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", "2016-03-07 15:46:09.206699"], ["updated_at", "2016-03-07 15:46:09.206699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:46:09.209924"], ["updated_at", "2016-03-07 15:46:09.209924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:46:09.211921"], ["updated_at", "2016-03-07 15:46:09.211921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-07 15:46:09.213271"], ["updated_at", "2016-03-07 15:46:09.213271"]]  (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-03-07 15:46:09.214726"], ["updated_at", "2016-03-07 15:46:09.214726"]]  (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 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-03-07 15:46:09.221932"], ["updated_at", "2016-03-07 15:46:09.221932"]]  (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-03-07 15:46:09.224305"], ["updated_at", "2016-03-07 15:46:09.224305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:46:09.227021"], ["updated_at", "2016-03-07 15:46:09.227021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:46:09.229846"], ["updated_at", "2016-03-07 15:46:09.229846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:46:09.231404"], ["updated_at", "2016-03-07 15:46:09.231404"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:09.232691"], ["updated_at", "2016-03-07 15:46:09.232691"]]  (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-03-07 15:46:09.234000"], ["updated_at", "2016-03-07 15:46:09.234000"]]  (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-03-07 15:46:09.240285"], ["updated_at", "2016-03-07 15:46:09.240285"]]  (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", "2016-03-07 15:46:09.242590"], ["updated_at", "2016-03-07 15:46:09.242590"]]  (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 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-03-07 15:46:09.245451"], ["updated_at", "2016-03-07 15:46:09.245451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:46:09.248498"], ["updated_at", "2016-03-07 15:46:09.248498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:46:09.249992"], ["updated_at", "2016-03-07 15:46:09.249992"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:46:09.251134"], ["updated_at", "2016-03-07 15:46:09.251134"]]  (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-03-07 15:46:09.252346"], ["updated_at", "2016-03-07 15:46:09.252346"]]  (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-03-07 15:46:09.254135"], ["updated_at", "2016-03-07 15:46:09.254135"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", "2016-03-07 15:46:09.257240"], ["updated_at", "2016-03-07 15:46:09.257240"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:46:09.264920"], ["updated_at", "2016-03-07 15:46:09.264920"]]  (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-03-07 15:46:09.267403"], ["updated_at", "2016-03-07 15:46:09.267403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:46:09.270426"], ["updated_at", "2016-03-07 15:46:09.270426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:46:09.274063"], ["updated_at", "2016-03-07 15:46:09.274063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:46:09.275892"], ["updated_at", "2016-03-07 15:46:09.275892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:09.277058"], ["updated_at", "2016-03-07 15:46:09.277058"]]  (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-03-07 15:46:09.278273"], ["updated_at", "2016-03-07 15:46:09.278273"]]  (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-03-07 15:46:09.280063"], ["updated_at", "2016-03-07 15:46:09.280063"]]  (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-03-07 15:46:09.281897"], ["updated_at", "2016-03-07 15:46:09.281897"]]  (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.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' 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 70"], ["key", "Key 70"], ["secret", "Account 70"], ["canvas_account_id", "69"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:09.288715"], ["updated_at", "2016-03-07 15:46:09.288715"]]  (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-03-07 15:46:09.291838"], ["updated_at", "2016-03-07 15:46:09.291838"]]  (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", "2016-03-07 15:46:09.294943"], ["updated_at", "2016-03-07 15:46:09.294943"]]  (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.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-03-07 15:46:09.298337"], ["updated_at", "2016-03-07 15:46:09.298337"]]  (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", "29"], ["created_at", "2016-03-07 15:46:09.300423"], ["updated_at", "2016-03-07 15:46:09.300423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:46:09.301821"], ["updated_at", "2016-03-07 15:46:09.301821"]]  (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-03-07 15:46:09.303251"], ["updated_at", "2016-03-07 15:46:09.303251"]]  (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", "2016-03-07 15:46:09.309461"], ["updated_at", "2016-03-07 15:46:09.309461"]]  (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.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", "2016-03-07 15:46:09.315056"], ["updated_at", "2016-03-07 15:46:09.315056"]]  (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-03-07 15:46:09.317491"], ["updated_at", "2016-03-07 15:46:09.317491"]]  (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-03-07 15:46:09.319394"], ["updated_at", "2016-03-07 15:46:09.319394"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:09.327452"], ["updated_at", "2016-03-07 15:46:09.327452"]]  (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", "2016-03-07 15:46:09.333064"], ["updated_at", "2016-03-07 15:46:09.333064"]]  (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.1ms) 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-03-07 15:46:09.337800"], ["updated_at", "2016-03-07 15:46:09.337800"]]  (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-03-07 15:46:09.340809"], ["updated_at", "2016-03-07 15:46:09.340809"]]  (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-03-07 15:46:09.343285"], ["updated_at", "2016-03-07 15:46:09.343285"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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-03-07 15:46:09.349051"], ["updated_at", "2016-03-07 15:46:09.349051"]]  (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-03-07 15:46:09.357045"], ["updated_at", "2016-03-07 15:46:09.357045"]]  (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", "2016-03-07 15:46:09.370996"], ["updated_at", "2016-03-07 15:46:09.370996"]]  (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-03-07 15:46:09.373708"], ["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", "2016-03-07 15:46:09.380081"], ["updated_at", "2016-03-07 15:46:09.380081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:46:09.383428"], ["updated_at", "2016-03-07 15:46:09.383428"]]  (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", "2016-03-07 15:46:09.385159"], ["id", 1]]  (0.1ms) 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 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-03-07 15:46:09.450612"], ["updated_at", "2016-03-07 15:46:09.450612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:46:09.453838"], ["updated_at", "2016-03-07 15:46:09.453838"]]  (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-03-07 15:46:09.455579"], ["id", 1]]  (0.1ms) 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", "2016-03-07 15:46:09.469844"], ["id", 1]]  (0.1ms) 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"."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.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-03-07 15:46:09.476944"], ["updated_at", "2016-03-07 15:46:09.476944"]]  (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", "2016-03-07 15:46:09.480446"], ["updated_at", "2016-03-07 15:46:09.480446"]]  (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-03-07 15:46:09.482940"], ["updated_at", "2016-03-07 15:46:09.482940"]]  (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", "2016-03-07 15:46:09.486004"], ["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", "Completed"], ["updated_at", "2016-03-07 15:46:09.487582"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) 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", "2016-03-07 15:46:09.495612"], ["updated_at", "2016-03-07 15:46:09.495612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:46:09.500125"], ["updated_at", "2016-03-07 15:46:09.500125"]]  (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-03-07 15:46:09.501832"], ["id", 1]]  (0.1ms) 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.1ms) SAVEPOINT active_record_1 SQL (0.5ms) 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-03-07 15:46:09.506810"], ["updated_at", "2016-03-07 15:46:09.506810"]]  (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", "2016-03-07 15:46:09.509856"], ["updated_at", "2016-03-07 15:46:09.509856"]]  (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.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", "2016-03-07 15:46:09.516819"], ["updated_at", "2016-03-07 15:46:09.516819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:46:09.520094"], ["updated_at", "2016-03-07 15:46:09.520094"]]  (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-03-07 15:46:09.521859"], ["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", "2016-03-07 15:46:09.524478"], ["updated_at", "2016-03-07 15:46:09.524478"]]  (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-03-07 15:46:09.526171"], ["updated_at", "2016-03-07 15:46:09.526171"]]  (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-03-07 15:46:09.527777"], ["updated_at", "2016-03-07 15:46:09.527777"]]  (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.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", "2016-03-07 15:46:09.534764"], ["updated_at", "2016-03-07 15:46:09.534764"]]  (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", "2016-03-07 15:46:09.540967"], ["updated_at", "2016-03-07 15:46:09.540967"]]  (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-03-07 15:46:09.543080"], ["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", "2016-03-07 15:46:09.549003"], ["updated_at", "2016-03-07 15:46:09.549003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:46:09.553707"], ["updated_at", "2016-03-07 15:46:09.553707"]]  (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-03-07 15:46:09.556362"], ["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.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", "2016-03-07 15:46:09.564767"], ["updated_at", "2016-03-07 15:46:09.564767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:46:09.568037"], ["updated_at", "2016-03-07 15:46:09.568037"]]  (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-03-07 15:46:09.569472"], ["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", "2016-03-07 15:46:09.572171"], ["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.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 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", "2016-03-07 15:46:09.581112"], ["updated_at", "2016-03-07 15:46:09.581112"]]  (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.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", "2016-03-07 15:46:09.585107"], ["updated_at", "2016-03-07 15:46:09.585107"]]  (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", "31"], ["created_at", "2016-03-07 15:46:09.587675"], ["updated_at", "2016-03-07 15:46:09.587675"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2016-03-07 15:46:09.589596"], ["updated_at", "2016-03-07 15:46:09.589596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:09.592537"], ["updated_at", "2016-03-07 15:46:09.592537"]]  (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-03-07 15:46:09.594422"], ["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.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 89"], ["key", "Key 89"], ["secret", "Account 89"], ["canvas_account_id", "88"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:09.602539"], ["updated_at", "2016-03-07 15:46:09.602539"]]  (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-03-07 15:46:09.607023"], ["updated_at", "2016-03-07 15:46:09.607023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:09.609259"], ["updated_at", "2016-03-07 15:46:09.609259"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-07 15:46:09.610566"], ["updated_at", "2016-03-07 15:46:09.610566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:09.613082"], ["updated_at", "2016-03-07 15:46:09.613082"]]  (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-03-07 15:46:09.614413"], ["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.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", "2016-03-07 15:46:09.621256"], ["updated_at", "2016-03-07 15:46:09.621256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:46:09.624235"], ["updated_at", "2016-03-07 15:46:09.624235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2016-03-07 15:46:09.626142"], ["updated_at", "2016-03-07 15:46:09.626142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:09.627353"], ["updated_at", "2016-03-07 15:46:09.627353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:09.629998"], ["updated_at", "2016-03-07 15:46:09.629998"]]  (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", "2016-03-07 15:46:09.631283"], ["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.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", "2016-03-07 15:46:09.638414"], ["updated_at", "2016-03-07 15:46:09.638414"]]  (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 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.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 94"], ["key", "Key 94"], ["secret", "Account 94"], ["canvas_account_id", "93"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:09.642924"], ["updated_at", "2016-03-07 15:46:09.642924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:09.645877"], ["updated_at", "2016-03-07 15:46:09.645877"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2016-03-07 15:46:09.647460"], ["updated_at", "2016-03-07 15:46:09.647460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:09.650718"], ["updated_at", "2016-03-07 15:46:09.650718"]]  (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-03-07 15:46:09.652643"], ["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", "2016-03-07 15:46:09.660967"], ["updated_at", "2016-03-07 15:46:09.660967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:46:09.664303"], ["updated_at", "2016-03-07 15:46:09.664303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-03-07 15:46:09.666359"], ["updated_at", "2016-03-07 15:46:09.666359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:09.667614"], ["updated_at", "2016-03-07 15:46:09.667614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:09.670130"], ["updated_at", "2016-03-07 15:46:09.670130"]]  (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-03-07 15:46:09.671691"], ["id", 1]]  (0.1ms) 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", "2016-03-07 15:46:09.680502"], ["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.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-03-07 15:46:09.685282"], ["updated_at", "2016-03-07 15:46:09.685282"]]  (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", "2016-03-07 15:46:09.749383"], ["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", "2016-03-07 15:46:09.752486"], ["updated_at", "2016-03-07 15:46:09.752486"]]  (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-03-07 15:46:09.754528"], ["updated_at", "2016-03-07 15:46:09.754528"]]  (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", "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-03-07 15:46:09.756910"], ["updated_at", "2016-03-07 15:46:09.756910"]]  (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", "2016-03-07 15:46:09.768296"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.4ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.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-03-07 15:46:09.786636"], ["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.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2016-03-07 15:46:09.793159"], ["updated_at", "2016-03-07 15:46:09.793159"]]  (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", "2016-03-07 15:46:09.796102"], ["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.3ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_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.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", "2016-03-07 15:46:09.815511"], ["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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2016-03-07 15:46:09.818623"], ["id", 1]]  (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", "2016-03-07 15:46:09.832254"], ["updated_at", "2016-03-07 15:46:09.832254"]]  (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-03-07 15:46:09.835901"], ["updated_at", "2016-03-07 15:46:09.835901"]]  (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", "2016-03-07 15:46:09.838053"], ["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.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-03-07 15:46:09.852384"], ["updated_at", "2016-03-07 15:46:09.852384"]]  (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.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"]]  (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-03-07 15:46:09.856934"], ["updated_at", "2016-03-07 15:46:09.856934"]]  (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.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  (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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2016-03-07 15:46:09.864703"], ["id", 1]]  (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-03-07 15:46:09.866190"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Section Load (0.2ms) 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", "2016-03-07 15:46:09.874743"], ["updated_at", "2016-03-07 15:46:09.874743"]]  (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.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", "2016-03-07 15:46:09.878207"], ["updated_at", "2016-03-07 15:46:09.878207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:09.880132"], ["updated_at", "2016-03-07 15:46:09.880132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-03-07 15:46:09.881333"], ["updated_at", "2016-03-07 15:46:09.881333"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:09.884015"], ["updated_at", "2016-03-07 15:46:09.884015"]]  (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-03-07 15:46:09.885586"], ["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.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-03-07 15:46:09.888597"], ["updated_at", "2016-03-07 15:46:09.888597"]]  (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"  (1.0ms) 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-03-07 15:46:09.897844"], ["updated_at", "2016-03-07 15:46:09.897844"]]  (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.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-03-07 15:46:09.901261"], ["updated_at", "2016-03-07 15:46:09.901261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:09.903317"], ["updated_at", "2016-03-07 15:46:09.903317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-07 15:46:09.904800"], ["updated_at", "2016-03-07 15:46:09.904800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:09.907825"], ["updated_at", "2016-03-07 15:46:09.907825"]]  (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-03-07 15:46:09.909425"], ["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", "2016-03-07 15:46:09.911803"], ["updated_at", "2016-03-07 15:46:09.911803"]]  (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-03-07 15:46:09.913676"], ["updated_at", "2016-03-07 15:46:09.913676"]]  (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", "2016-03-07 15:46:09.915337"], ["updated_at", "2016-03-07 15:46:09.915337"]]  (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.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", "2016-03-07 15:46:09.924818"], ["updated_at", "2016-03-07 15:46:09.924818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (61.0ms) 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-03-07 15:46:09.994273"], ["updated_at", "2016-03-07 15:46:09.994273"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:09.997352"], ["updated_at", "2016-03-07 15:46:09.997352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-07 15:46:09.998890"], ["updated_at", "2016-03-07 15:46:09.998890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.001740"], ["updated_at", "2016-03-07 15:46:10.001740"]]  (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-03-07 15:46:10.003294"], ["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-03-07 15:46:10.005729"], ["updated_at", "2016-03-07 15:46:10.005729"]]  (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-03-07 15:46:10.008284"], ["updated_at", "2016-03-07 15:46:10.008284"]]  (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-03-07 15:46:10.009939"], ["updated_at", "2016-03-07 15:46:10.009939"]]  (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-03-07 15:46:10.011680"], ["updated_at", "2016-03-07 15:46:10.011680"]]  (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]]  (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.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 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", "2016-03-07 15:46:10.034799"], ["updated_at", "2016-03-07 15:46:10.034799"]]  (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.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' 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 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:10.039470"], ["updated_at", "2016-03-07 15:46:10.039470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-07 15:46:10.042809"], ["updated_at", "2016-03-07 15:46:10.042809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:10.044474"], ["updated_at", "2016-03-07 15:46:10.044474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.048027"], ["updated_at", "2016-03-07 15:46:10.048027"]]  (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-03-07 15:46:10.049655"], ["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", "2016-03-07 15:46:10.055963"], ["updated_at", "2016-03-07 15:46:10.055963"]]  (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", "2016-03-07 15:46:10.064523"], ["updated_at", "2016-03-07 15:46:10.064523"]]  (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.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 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:10.068018"], ["updated_at", "2016-03-07 15:46:10.068018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:10.070109"], ["updated_at", "2016-03-07 15:46:10.070109"]]  (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", "35"], ["created_at", "2016-03-07 15:46:10.071921"], ["updated_at", "2016-03-07 15:46:10.071921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.075314"], ["updated_at", "2016-03-07 15:46:10.075314"]]  (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-03-07 15:46:10.077216"], ["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-03-07 15:46:10.080017"], ["updated_at", "2016-03-07 15:46:10.080017"]]  (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.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.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" 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.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.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", "2016-03-07 15:46:10.105913"], ["updated_at", "2016-03-07 15:46:10.105913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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 108"], ["key", "Key 108"], ["secret", "Account 108"], ["canvas_account_id", "107"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:10.109216"], ["updated_at", "2016-03-07 15:46:10.109216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-07 15:46:10.112010"], ["updated_at", "2016-03-07 15:46:10.112010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:10.113510"], ["updated_at", "2016-03-07 15:46:10.113510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.116972"], ["updated_at", "2016-03-07 15:46:10.116972"]]  (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-03-07 15:46:10.118697"], ["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-03-07 15:46:10.121452"], ["updated_at", "2016-03-07 15:46:10.121452"]]  (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"."id" != 1) [["coalescing_panda_course_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.9ms) 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", "2016-03-07 15:46:10.130999"], ["updated_at", "2016-03-07 15:46:10.130999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:46:10.134026"], ["updated_at", "2016-03-07 15:46:10.134026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2016-03-07 15:46:10.135935"], ["updated_at", "2016-03-07 15:46:10.135935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:10.137070"], ["updated_at", "2016-03-07 15:46:10.137070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.140141"], ["updated_at", "2016-03-07 15:46:10.140141"]]  (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-03-07 15:46:10.142052"], ["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-03-07 15:46:10.145058"], ["updated_at", "2016-03-07 15:46:10.145058"]]  (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-03-07 15:46:10.148149"], ["updated_at", "2016-03-07 15:46:10.148149"]]  (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-03-07 15:46:10.149932"], ["updated_at", "2016-03-07 15:46:10.149932"]]  (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", "2016-03-07 15:46:10.151641"], ["updated_at", "2016-03-07 15:46:10.151641"]]  (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.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.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.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-03-07 15:46:10.183835"], ["updated_at", "2016-03-07 15:46:10.183835"]]  (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-03-07 15:46:10.187390"], ["updated_at", "2016-03-07 15:46:10.187390"]]  (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.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", "4"], ["coalescing_panda_user_id", 3], ["coalescing_panda_assignment_id", 2], ["grade", "90"], ["score", "90"], ["workflow_state", "graded"], ["created_at", "2016-03-07 15:46:10.192303"], ["updated_at", "2016-03-07 15:46:10.192303"]]  (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", "2016-03-07 15:46:10.195570"], ["updated_at", "2016-03-07 15:46:10.195570"]]  (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.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", "2016-03-07 15:46:10.203585"], ["updated_at", "2016-03-07 15:46:10.203585"]]  (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.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' 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 112"], ["key", "Key 112"], ["secret", "Account 112"], ["canvas_account_id", "111"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:10.266467"], ["updated_at", "2016-03-07 15:46:10.266467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-03-07 15:46:10.269300"], ["updated_at", "2016-03-07 15:46:10.269300"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:10.270684"], ["updated_at", "2016-03-07 15:46:10.270684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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", "2016-03-07 15:46:10.274558"], ["updated_at", "2016-03-07 15:46:10.274558"]]  (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-03-07 15:46:10.277215"], ["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-03-07 15:46:10.280650"], ["updated_at", "2016-03-07 15:46:10.280650"]]  (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-03-07 15:46:10.285165"], ["updated_at", "2016-03-07 15:46:10.285165"]]  (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-03-07 15:46:10.287740"], ["updated_at", "2016-03-07 15:46:10.287740"]]  (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"]]  (1.5ms) 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 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.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 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:10.299942"], ["updated_at", "2016-03-07 15:46:10.299942"]]  (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", "2016-03-07 15:46:10.304973"], ["updated_at", "2016-03-07 15:46:10.304973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2016-03-07 15:46:10.307610"], ["updated_at", "2016-03-07 15:46:10.307610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:10.309176"], ["updated_at", "2016-03-07 15:46:10.309176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.312265"], ["updated_at", "2016-03-07 15:46:10.312265"]]  (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-03-07 15:46:10.313931"], ["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-03-07 15:46:10.316600"], ["updated_at", "2016-03-07 15:46:10.316600"]]  (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-03-07 15:46:10.319010"], ["updated_at", "2016-03-07 15:46:10.319010"]]  (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-03-07 15:46:10.320728"], ["updated_at", "2016-03-07 15:46:10.320728"]]  (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-03-07 15:46:10.322376"], ["updated_at", "2016-03-07 15:46:10.322376"]]  (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::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.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", "2016-03-07 15:46:10.340111"], ["updated_at", "2016-03-07 15:46:10.340111"]]  (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-03-07 15:46:10.342827"], ["updated_at", "2016-03-07 15:46:10.342827"]]  (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.2ms) 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.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", "2016-03-07 15:46:10.353770"], ["updated_at", "2016-03-07 15:46:10.353770"]]  (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", "2016-03-07 15:46:10.357600"], ["updated_at", "2016-03-07 15:46:10.357600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:10.359610"], ["updated_at", "2016-03-07 15:46:10.359610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-03-07 15:46:10.361059"], ["updated_at", "2016-03-07 15:46:10.361059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.364007"], ["updated_at", "2016-03-07 15:46:10.364007"]]  (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-03-07 15:46:10.365594"], ["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", "2016-03-07 15:46:10.370168"], ["updated_at", "2016-03-07 15:46:10.370168"]]  (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.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", "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-03-07 15:46:10.373690"], ["updated_at", "2016-03-07 15:46:10.373690"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.7ms) 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.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", "2016-03-07 15:46:10.381869"], ["updated_at", "2016-03-07 15:46:10.381869"]]  (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", "2016-03-07 15:46:10.385497"], ["updated_at", "2016-03-07 15:46:10.385497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:10.387541"], ["updated_at", "2016-03-07 15:46:10.387541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-07 15:46:10.388813"], ["updated_at", "2016-03-07 15:46:10.388813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.393253"], ["updated_at", "2016-03-07 15:46:10.393253"]]  (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-03-07 15:46:10.395259"], ["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-03-07 15:46:10.397914"], ["updated_at", "2016-03-07 15:46:10.397914"]]  (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-03-07 15:46:10.400319"], ["updated_at", "2016-03-07 15:46:10.400319"]]  (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-03-07 15:46:10.401990"], ["updated_at", "2016-03-07 15:46:10.401990"]]  (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", "2016-03-07 15:46:10.403536"], ["updated_at", "2016-03-07 15:46:10.403536"]]  (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", "2016-03-07 15:46:10.419973"], ["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.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 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.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 119"], ["key", "Key 119"], ["secret", "Account 119"], ["canvas_account_id", "118"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:10.438498"], ["updated_at", "2016-03-07 15:46:10.438498"]]  (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.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", "2016-03-07 15:46:10.443010"], ["updated_at", "2016-03-07 15:46:10.443010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-07 15:46:10.445025"], ["updated_at", "2016-03-07 15:46:10.445025"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:10.446207"], ["updated_at", "2016-03-07 15:46:10.446207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.448673"], ["updated_at", "2016-03-07 15:46:10.448673"]]  (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-03-07 15:46:10.450035"], ["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-03-07 15:46:10.452287"], ["updated_at", "2016-03-07 15:46:10.452287"]]  (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-03-07 15:46:10.454790"], ["updated_at", "2016-03-07 15:46:10.454790"]]  (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-03-07 15:46:10.456507"], ["updated_at", "2016-03-07 15:46:10.456507"]]  (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", "2016-03-07 15:46:10.458149"], ["updated_at", "2016-03-07 15:46:10.458149"]]  (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.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- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-03-07 15:46:10.473426"], ["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.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"]]  (1.0ms) 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 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", "2016-03-07 15:46:10.554037"], ["updated_at", "2016-03-07 15:46:10.554037"]]  (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-03-07 15:46:10.557485"], ["updated_at", "2016-03-07 15:46:10.557485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-07 15:46:10.559318"], ["updated_at", "2016-03-07 15:46:10.559318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:10.560515"], ["updated_at", "2016-03-07 15:46:10.560515"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.563144"], ["updated_at", "2016-03-07 15:46:10.563144"]]  (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-03-07 15:46:10.565138"], ["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-03-07 15:46:10.568011"], ["updated_at", "2016-03-07 15:46:10.568011"]]  (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-03-07 15:46:10.570553"], ["updated_at", "2016-03-07 15:46:10.570553"]]  (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-03-07 15:46:10.572411"], ["updated_at", "2016-03-07 15:46:10.572411"]]  (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", "2016-03-07 15:46:10.574128"], ["updated_at", "2016-03-07 15:46:10.574128"]]  (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.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.589428"], ["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.5ms) 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.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-03-07 15:46:10.606986"], ["updated_at", "2016-03-07 15:46:10.606986"]]  (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 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", "2016-03-07 15:46:10.610617"], ["updated_at", "2016-03-07 15:46:10.610617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:10.612535"], ["updated_at", "2016-03-07 15:46:10.612535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2016-03-07 15:46:10.613820"], ["updated_at", "2016-03-07 15:46:10.613820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.616412"], ["updated_at", "2016-03-07 15:46:10.616412"]]  (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-03-07 15:46:10.617840"], ["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-03-07 15:46:10.620239"], ["updated_at", "2016-03-07 15:46:10.620239"]]  (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-03-07 15:46:10.622847"], ["updated_at", "2016-03-07 15:46:10.622847"]]  (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-03-07 15:46:10.624651"], ["updated_at", "2016-03-07 15:46:10.624651"]]  (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-03-07 15:46:10.626609"], ["updated_at", "2016-03-07 15:46:10.626609"]]  (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.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- :soft_delete\n"], ["updated_at", "2016-03-07 15:46:10.643842"], ["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-03-07 15:46:10.649691"], ["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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:10.659837"], ["updated_at", "2016-03-07 15:46:10.659837"]]  (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", "2016-03-07 15:46:10.664208"], ["updated_at", "2016-03-07 15:46:10.664208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-03-07 15:46:10.666457"], ["updated_at", "2016-03-07 15:46:10.666457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:10.667852"], ["updated_at", "2016-03-07 15:46:10.667852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.670582"], ["updated_at", "2016-03-07 15:46:10.670582"]]  (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-03-07 15:46:10.672055"], ["id", 1]]  (0.1ms) 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 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:46:10.680699"], ["updated_at", "2016-03-07 15:46:10.680699"]]  (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.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", "2016-03-07 15:46:10.684740"], ["updated_at", "2016-03-07 15:46:10.684740"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:10.687041"], ["updated_at", "2016-03-07 15:46:10.687041"]]  (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", "46"], ["created_at", "2016-03-07 15:46:10.688743"], ["updated_at", "2016-03-07 15:46:10.688743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.691424"], ["updated_at", "2016-03-07 15:46:10.691424"]]  (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-03-07 15:46:10.692810"], ["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", "2016-03-07 15:46:10.700245"], ["updated_at", "2016-03-07 15:46:10.700245"]]  (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", "2016-03-07 15:46:10.703430"], ["updated_at", "2016-03-07 15:46:10.703430"]]  (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", "52"], ["created_at", "2016-03-07 15:46:10.705558"], ["updated_at", "2016-03-07 15:46:10.705558"]]  (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", "2016-03-07 15:46:10.708670"], ["updated_at", "2016-03-07 15:46:10.708670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.711994"], ["updated_at", "2016-03-07 15:46:10.711994"]]  (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-03-07 15:46:10.713570"], ["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 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.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 131"], ["key", "Key 131"], ["secret", "Account 131"], ["canvas_account_id", "130"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:10.721892"], ["updated_at", "2016-03-07 15:46:10.721892"]]  (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.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", "2016-03-07 15:46:10.725883"], ["updated_at", "2016-03-07 15:46:10.725883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:10.728014"], ["updated_at", "2016-03-07 15:46:10.728014"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-07 15:46:10.729403"], ["updated_at", "2016-03-07 15:46:10.729403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.731963"], ["updated_at", "2016-03-07 15:46:10.731963"]]  (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-03-07 15:46:10.733353"], ["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 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", "2016-03-07 15:46:10.742555"], ["updated_at", "2016-03-07 15:46:10.742555"]]  (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.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", "2016-03-07 15:46:10.746343"], ["updated_at", "2016-03-07 15:46:10.746343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2016-03-07 15:46:10.748402"], ["updated_at", "2016-03-07 15:46:10.748402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:10.749648"], ["updated_at", "2016-03-07 15:46:10.749648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.752264"], ["updated_at", "2016-03-07 15:46:10.752264"]]  (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-03-07 15:46:10.753701"], ["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 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-03-07 15:46:10.762302"], ["updated_at", "2016-03-07 15:46:10.762302"]]  (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 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-03-07 15:46:10.828294"], ["updated_at", "2016-03-07 15:46:10.828294"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:10.830742"], ["updated_at", "2016-03-07 15:46:10.830742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-03-07 15:46:10.832017"], ["updated_at", "2016-03-07 15:46:10.832017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.834693"], ["updated_at", "2016-03-07 15:46:10.834693"]]  (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-03-07 15:46:10.836428"], ["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.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", "2016-03-07 15:46:10.845203"], ["updated_at", "2016-03-07 15:46:10.845203"]]  (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-03-07 15:46:10.848811"], ["updated_at", "2016-03-07 15:46:10.848811"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-07 15:46:10.850864"], ["updated_at", "2016-03-07 15:46:10.850864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:46:10.852194"], ["updated_at", "2016-03-07 15:46:10.852194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.855308"], ["updated_at", "2016-03-07 15:46:10.855308"]]  (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-03-07 15:46:10.857356"], ["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.2ms) INSERT INTO "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-03-07 15:46:10.866194"], ["updated_at", "2016-03-07 15:46:10.866194"]]  (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.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 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:46:10.869819"], ["updated_at", "2016-03-07 15:46:10.869819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:10.872204"], ["updated_at", "2016-03-07 15:46:10.872204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2016-03-07 15:46:10.873930"], ["updated_at", "2016-03-07 15:46:10.873930"]]  (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-03-07 15:46:10.878254"], ["updated_at", "2016-03-07 15:46:10.878254"]]  (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-03-07 15:46:10.880275"], ["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.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.1ms) 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-03-07 15:46:10.891578"], ["updated_at", "2016-03-07 15:46:10.891578"]]  (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 142' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:46:10.895677"], ["updated_at", "2016-03-07 15:46:10.895677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:46:10.898000"], ["updated_at", "2016-03-07 15:46:10.898000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-03-07 15:46:10.899496"], ["updated_at", "2016-03-07 15:46:10.899496"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:46:10.902644"], ["updated_at", "2016-03-07 15:46:10.902644"]]  (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-03-07 15:46:10.904382"], ["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", "2016-03-07 15:46:10.907998"], ["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.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 2ms (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 1ms (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", "2016-03-07 15:47:29.881877"], ["updated_at", "2016-03-07 15:47:29.881877"]]  (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", "2016-03-07 15:47:29.895709"], ["updated_at", "2016-03-07 15:47:29.895709"]]  (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", "2016-03-07 16:47:29.914749"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:47:29.915926"], ["updated_at", "2016-03-07 15:47:29.915926"]]  (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 25ms (Views: 7.1ms | 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.4ms) 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.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.0ms) SAVEPOINT 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-03-07 15:47:29.949329"], ["updated_at", "2016-03-07 15:47:29.949329"]]  (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", "2016-03-07 15:47:30.010811"], ["updated_at", "2016-03-07 15:47:30.010811"]]  (0.0ms) 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", "2016-03-07 15:47:30.014637"], ["updated_at", "2016-03-07 15:47:30.014637"]]  (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", "1"], ["created_at", "2016-03-07 15:47:30.018000"], ["updated_at", "2016-03-07 15:47:30.018000"]]  (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 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", "2016-03-07 15:47:30.031036"], ["updated_at", "2016-03-07 15:47:30.031036"]]  (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.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-03-07 15:47:30.034847"], ["updated_at", "2016-03-07 15:47:30.034847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:30.037004"], ["updated_at", "2016-03-07 15:47:30.037004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-03-07 15:47:30.038360"], ["updated_at", "2016-03-07 15:47:30.038360"]]  (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.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 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:47:30.043413"], ["updated_at", "2016-03-07 15:47:30.043413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.046594"], ["updated_at", "2016-03-07 15:47:30.046594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:30.048568"], ["updated_at", "2016-03-07 15:47:30.048568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-07 15:47:30.049719"], ["updated_at", "2016-03-07 15:47:30.049719"]]  (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.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.2ms) INSERT INTO "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-03-07 15:47:30.067155"], ["updated_at", "2016-03-07 15:47:30.067155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.070521"], ["updated_at", "2016-03-07 15:47:30.070521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:30.072359"], ["updated_at", "2016-03-07 15:47:30.072359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-03-07 15:47:30.073462"], ["updated_at", "2016-03-07 15:47:30.073462"]]  (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.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", "2016-03-07 15:47:30.079528"], ["updated_at", "2016-03-07 15:47:30.079528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.082451"], ["updated_at", "2016-03-07 15:47:30.082451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:30.084599"], ["updated_at", "2016-03-07 15:47:30.084599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-03-07 15:47:30.086028"], ["updated_at", "2016-03-07 15:47:30.086028"]]  (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.1ms) 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-03-07 15:47:30.091795"], ["updated_at", "2016-03-07 15:47:30.091795"]]  (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-03-07 15:47:30.095139"], ["updated_at", "2016-03-07 15:47:30.095139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:30.096997"], ["updated_at", "2016-03-07 15:47:30.096997"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-03-07 15:47:30.098277"], ["updated_at", "2016-03-07 15:47:30.098277"]]  (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", "2016-03-07 15:47:30.100297"], ["updated_at", "2016-03-07 15:47:30.100297"]]  (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", "2016-03-07 15:47:30.103461"], ["updated_at", "2016-03-07 15:47:30.103461"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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", "2016-03-07 15:47:30.108629"], ["updated_at", "2016-03-07 15:47:30.108629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.111465"], ["updated_at", "2016-03-07 15:47:30.111465"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:30.113176"], ["updated_at", "2016-03-07 15:47:30.113176"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-03-07 15:47:30.114297"], ["updated_at", "2016-03-07 15:47:30.114297"]]  (0.1ms) 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", "2016-03-07 15:47:30.121308"], ["updated_at", "2016-03-07 15:47:30.121308"]]  (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.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-03-08 15:47:30.134986"], ["created_at", "2016-03-07 15:47:30.136108"], ["updated_at", "2016-03-07 15:47:30.136108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", "2016-03-07 15:47:30.146108"], ["updated_at", "2016-03-07 15:47:30.146108"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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", "2016-03-07 15:47:30.148520"], ["updated_at", "2016-03-07 15:47:30.148520"]]  (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", "2016-03-07 15:47:30.150425"], ["updated_at", "2016-03-07 15:47:30.150425"]]  (0.1ms) 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.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.1ms) 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) SAVEPOINT 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.1ms) 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", "2016-03-07 15:47:30.162470"], ["updated_at", "2016-03-07 15:47:30.162470"]]  (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", "2016-03-07 15:47:30.166069"], ["updated_at", "2016-03-07 15:47:30.166069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-07 15:47:30.168088"], ["updated_at", "2016-03-07 15:47:30.168088"]]  (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 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-03-07 15:47:30.174140"], ["updated_at", "2016-03-07 15:47:30.174140"]]  (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", "2016-03-07 15:47:30.177541"], ["updated_at", "2016-03-07 15:47:30.177541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:30.179376"], ["updated_at", "2016-03-07 15:47:30.179376"]]  (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.1ms) 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", "2016-03-07 15:47:30.183975"], ["updated_at", "2016-03-07 15:47:30.183975"]]  (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.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", "2016-03-07 15:47:30.187881"], ["updated_at", "2016-03-07 15:47:30.187881"]]  (0.1ms) 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", "2016-03-07 15:47:30.239348"], ["updated_at", "2016-03-07 15:47:30.239348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:47:30.241078"], ["updated_at", "2016-03-07 15:47:30.241078"]]  (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-03-07 15:47:30.244523"], ["updated_at", "2016-03-07 15:47:30.244523"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.246375"], ["updated_at", "2016-03-07 15:47:30.246375"]]  (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-03-07 15:47:30.247510"], ["updated_at", "2016-03-07 15:47:30.247510"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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", "2016-03-07 15:47:30.252020"], ["updated_at", "2016-03-07 15:47:30.252020"]]  (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", "2016-03-07 15:47:30.253778"], ["updated_at", "2016-03-07 15:47:30.253778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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-03-07 15:47:30.257219"], ["updated_at", "2016-03-07 15:47:30.257219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:47:30.260470"], ["updated_at", "2016-03-07 15:47:30.260470"]]  (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.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-03-07 15:47:30.264453"], ["updated_at", "2016-03-07 15:47:30.264453"]]  (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", "2016-03-07 15:47:30.266928"], ["updated_at", "2016-03-07 15:47:30.266928"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:47:30.272100"], ["updated_at", "2016-03-07 15:47:30.272100"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.275104"], ["updated_at", "2016-03-07 15:47:30.275104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:30.276782"], ["updated_at", "2016-03-07 15:47:30.276782"]]  (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.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", "2016-03-07 15:47:30.289206"], ["updated_at", "2016-03-07 15:47:30.289206"]]  (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", "2016-03-07 15:47:30.292044"], ["updated_at", "2016-03-07 15:47:30.292044"]]  (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.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", "2016-03-07 15:47:30.303436"], ["updated_at", "2016-03-07 15:47:30.303436"]]  (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.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-03-07 15:47:30.307123"], ["updated_at", "2016-03-07 15:47:30.307123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.309328"], ["updated_at", "2016-03-07 15:47:30.309328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.310815"], ["updated_at", "2016-03-07 15:47:30.310815"]]  (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-03-07 15:47:30.313113"], ["updated_at", "2016-03-07 15:47:30.313113"]]  (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 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-03-07 15:47:30.321850"], ["updated_at", "2016-03-07 15:47:30.321850"]]  (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-03-07 15:47:30.324648"], ["updated_at", "2016-03-07 15:47:30.324648"]]  (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", "2016-03-07 15:47:30.328085"], ["updated_at", "2016-03-07 15:47:30.328085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.330952"], ["updated_at", "2016-03-07 15:47:30.330952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.332460"], ["updated_at", "2016-03-07 15:47:30.332460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:47:30.333805"], ["updated_at", "2016-03-07 15:47:30.333805"]]  (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-03-07 15:47:30.335012"], ["updated_at", "2016-03-07 15:47:30.335012"]]  (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", "2016-03-07 15:47:30.341310"], ["updated_at", "2016-03-07 15:47:30.341310"]]  (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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-03-07 15:47:30.344237"], ["updated_at", "2016-03-07 15:47:30.344237"]]  (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.1ms) 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-03-07 15:47:30.348346"], ["updated_at", "2016-03-07 15:47:30.348346"]]  (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.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", "2016-03-07 15:47:30.352802"], ["updated_at", "2016-03-07 15:47:30.352802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.354592"], ["updated_at", "2016-03-07 15:47:30.354592"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.355830"], ["updated_at", "2016-03-07 15:47:30.355830"]]  (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-03-07 15:47:30.357041"], ["updated_at", "2016-03-07 15:47:30.357041"]]  (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.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 37"], ["key", "Key 37"], ["secret", "Account 37"], ["canvas_account_id", "37"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:47:30.361798"], ["updated_at", "2016-03-07 15:47:30.361798"]]  (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", "2016-03-07 15:47:30.363707"], ["updated_at", "2016-03-07 15:47:30.363707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:47:30.366434"], ["updated_at", "2016-03-07 15:47:30.366434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.369205"], ["updated_at", "2016-03-07 15:47:30.369205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.371029"], ["updated_at", "2016-03-07 15:47:30.371029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:47:30.372163"], ["updated_at", "2016-03-07 15:47:30.372163"]]  (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-03-07 15:47:30.373663"], ["updated_at", "2016-03-07 15:47:30.373663"]]  (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", "2016-03-07 15:47:30.375864"], ["updated_at", "2016-03-07 15:47:30.375864"]]  (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", "2016-03-07 15:47:30.378210"], ["updated_at", "2016-03-07 15:47:30.378210"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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-03-07 15:47:30.383846"], ["updated_at", "2016-03-07 15:47:30.383846"]]  (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-03-07 15:47:30.386044"], ["updated_at", "2016-03-07 15:47:30.386044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:47:30.388698"], ["updated_at", "2016-03-07 15:47:30.388698"]]  (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 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-03-07 15:47:30.392726"], ["updated_at", "2016-03-07 15:47:30.392726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.395397"], ["updated_at", "2016-03-07 15:47:30.395397"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.397040"], ["updated_at", "2016-03-07 15:47:30.397040"]]  (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-03-07 15:47:30.398619"], ["updated_at", "2016-03-07 15:47:30.398619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-03-07 15:47:30.400699"], ["updated_at", "2016-03-07 15:47:30.400699"]]  (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-03-07 15:47:30.402746"], ["updated_at", "2016-03-07 15:47:30.402746"]]  (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.1ms) 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-03-07 15:47:30.408553"], ["updated_at", "2016-03-07 15:47:30.408553"]]  (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", "2016-03-07 15:47:30.411246"], ["updated_at", "2016-03-07 15:47:30.411246"]]  (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-03-07 15:47:30.414481"], ["updated_at", "2016-03-07 15:47:30.414481"]]  (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", "2016-03-07 15:47:30.418980"], ["updated_at", "2016-03-07 15:47:30.418980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.421195"], ["updated_at", "2016-03-07 15:47:30.421195"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:47:30.422788"], ["updated_at", "2016-03-07 15:47:30.422788"]]  (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-03-07 15:47:30.424263"], ["updated_at", "2016-03-07 15:47:30.424263"]]  (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", "2016-03-07 15:47:30.437803"], ["updated_at", "2016-03-07 15:47:30.437803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.441113"], ["updated_at", "2016-03-07 15:47:30.441113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-07 15:47:30.443073"], ["updated_at", "2016-03-07 15:47:30.443073"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.444319"], ["updated_at", "2016-03-07 15:47:30.444319"]]  (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", "2016-03-07 15:47:30.450069"], ["updated_at", "2016-03-07 15:47:30.450069"]]  (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.1ms) 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", "2016-03-07 15:47:30.453430"], ["updated_at", "2016-03-07 15:47:30.453430"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-07 15:47:30.455354"], ["updated_at", "2016-03-07 15:47:30.455354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.456572"], ["updated_at", "2016-03-07 15:47:30.456572"]]  (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", "2016-03-07 15:47:30.461092"], ["updated_at", "2016-03-07 15:47:30.461092"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:47:30.464277"], ["updated_at", "2016-03-07 15:47:30.464277"]]  (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", "22"], ["created_at", "2016-03-07 15:47:30.466812"], ["updated_at", "2016-03-07 15:47:30.466812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.468319"], ["updated_at", "2016-03-07 15:47:30.468319"]]  (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-03-07 15:47:30.470234"], ["updated_at", "2016-03-07 15:47:30.470234"]]  (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-03-07 15:47:30.471907"], ["updated_at", "2016-03-07 15:47:30.471907"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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 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-03-07 15:47:30.477186"], ["updated_at", "2016-03-07 15:47:30.477186"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.480605"], ["updated_at", "2016-03-07 15:47:30.480605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-03-07 15:47:30.482406"], ["updated_at", "2016-03-07 15:47:30.482406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.483588"], ["updated_at", "2016-03-07 15:47:30.483588"]]  (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.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", "2016-03-07 15:47:30.550486"], ["updated_at", "2016-03-07 15:47:30.550486"]]  (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", "2016-03-07 15:47:30.552929"], ["updated_at", "2016-03-07 15:47:30.552929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.556748"], ["updated_at", "2016-03-07 15:47:30.556748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.559600"], ["updated_at", "2016-03-07 15:47:30.559600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.561114"], ["updated_at", "2016-03-07 15:47:30.561114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.562301"], ["updated_at", "2016-03-07 15:47:30.562301"]]  (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", "2016-03-07 15:47:30.563654"], ["updated_at", "2016-03-07 15:47:30.563654"]]  (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 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-03-07 15:47:30.570554"], ["updated_at", "2016-03-07 15:47:30.570554"]]  (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-03-07 15:47:30.572697"], ["updated_at", "2016-03-07 15:47:30.572697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:47:30.575429"], ["updated_at", "2016-03-07 15:47:30.575429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:47:30.578172"], ["updated_at", "2016-03-07 15:47:30.578172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.579620"], ["updated_at", "2016-03-07 15:47:30.579620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-07 15:47:30.580724"], ["updated_at", "2016-03-07 15:47:30.580724"]]  (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-03-07 15:47:30.581901"], ["updated_at", "2016-03-07 15:47:30.581901"]]  (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", "2016-03-07 15:47:30.587354"], ["updated_at", "2016-03-07 15:47:30.587354"]]  (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-03-07 15:47:30.589683"], ["updated_at", "2016-03-07 15:47:30.589683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.592542"], ["updated_at", "2016-03-07 15:47:30.592542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:47:30.595400"], ["updated_at", "2016-03-07 15:47:30.595400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.596894"], ["updated_at", "2016-03-07 15:47:30.596894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.598025"], ["updated_at", "2016-03-07 15:47:30.598025"]]  (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-03-07 15:47:30.599153"], ["updated_at", "2016-03-07 15:47:30.599153"]]  (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", "2016-03-07 15:47:30.604346"], ["updated_at", "2016-03-07 15:47:30.604346"]]  (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", "2016-03-07 15:47:30.606453"], ["updated_at", "2016-03-07 15:47:30.606453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:47:30.609153"], ["updated_at", "2016-03-07 15:47:30.609153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.612063"], ["updated_at", "2016-03-07 15:47:30.612063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.613633"], ["updated_at", "2016-03-07 15:47:30.613633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:47:30.614886"], ["updated_at", "2016-03-07 15:47:30.614886"]]  (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-03-07 15:47:30.616335"], ["updated_at", "2016-03-07 15:47:30.616335"]]  (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", "2016-03-07 15:47:30.618569"], ["updated_at", "2016-03-07 15:47:30.618569"]]  (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-03-07 15:47:30.620537"], ["updated_at", "2016-03-07 15:47:30.620537"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:47:30.626119"], ["updated_at", "2016-03-07 15:47:30.626119"]]  (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-03-07 15:47:30.628554"], ["updated_at", "2016-03-07 15:47:30.628554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:47:30.631319"], ["updated_at", "2016-03-07 15:47:30.631319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.634174"], ["updated_at", "2016-03-07 15:47:30.634174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.635677"], ["updated_at", "2016-03-07 15:47:30.635677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.636794"], ["updated_at", "2016-03-07 15:47:30.636794"]]  (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-03-07 15:47:30.638257"], ["updated_at", "2016-03-07 15:47:30.638257"]]  (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", "1"], ["created_at", "2016-03-07 15:47:30.640566"], ["updated_at", "2016-03-07 15:47:30.640566"]]  (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-03-07 15:47:30.642668"], ["updated_at", "2016-03-07 15:47:30.642668"]]  (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 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", "2016-03-07 15:47:30.648311"], ["updated_at", "2016-03-07 15:47:30.648311"]]  (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-03-07 15:47:30.650284"], ["updated_at", "2016-03-07 15:47:30.650284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:47:30.653246"], ["updated_at", "2016-03-07 15:47:30.653246"]]  (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 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.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-03-07 15:47:30.657126"], ["updated_at", "2016-03-07 15:47:30.657126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:47:30.659710"], ["updated_at", "2016-03-07 15:47:30.659710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:47:30.661310"], ["updated_at", "2016-03-07 15:47:30.661310"]]  (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-03-07 15:47:30.662844"], ["updated_at", "2016-03-07 15:47:30.662844"]]  (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-03-07 15:47:30.670093"], ["updated_at", "2016-03-07 15:47:30.670093"]]  (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", "2016-03-07 15:47:30.675457"], ["updated_at", "2016-03-07 15:47:30.675457"]]  (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", "2016-03-07 15:47:30.677934"], ["updated_at", "2016-03-07 15:47:30.677934"]]  (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-03-07 15:47:30.679972"], ["updated_at", "2016-03-07 15:47:30.679972"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:47:30.687316"], ["updated_at", "2016-03-07 15:47:30.687316"]]  (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", "2016-03-07 15:47:30.693766"], ["updated_at", "2016-03-07 15:47:30.693766"]]  (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", "2016-03-07 15:47:30.699034"], ["updated_at", "2016-03-07 15:47:30.699034"]]  (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", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:47:30.702305"], ["updated_at", "2016-03-07 15:47:30.702305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-03-07 15:47:30.705178"], ["updated_at", "2016-03-07 15:47:30.705178"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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-03-07 15:47:30.710187"], ["updated_at", "2016-03-07 15:47:30.710187"]]  (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-03-07 15:47:30.718061"], ["updated_at", "2016-03-07 15:47:30.718061"]]  (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", "2016-03-07 15:47:30.729763"], ["updated_at", "2016-03-07 15:47:30.729763"]]  (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-03-07 15:47:30.731843"], ["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", "2016-03-07 15:47:30.738028"], ["updated_at", "2016-03-07 15:47:30.738028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:47:30.741129"], ["updated_at", "2016-03-07 15:47:30.741129"]]  (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-03-07 15:47:30.742786"], ["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", "2016-03-07 15:47:30.748769"], ["updated_at", "2016-03-07 15:47:30.748769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:47:30.752362"], ["updated_at", "2016-03-07 15:47:30.752362"]]  (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", "2016-03-07 15:47:30.807425"], ["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-03-07 15:47:30.819820"], ["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", "2016-03-07 15:47:30.824054"], ["updated_at", "2016-03-07 15:47:30.824054"]]  (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-03-07 15:47:30.826248"], ["updated_at", "2016-03-07 15:47:30.826248"]]  (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", "2016-03-07 15:47:30.827924"], ["updated_at", "2016-03-07 15:47:30.827924"]]  (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-03-07 15:47:30.829990"], ["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-03-07 15:47:30.831097"], ["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.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 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.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", "2016-03-07 15:47:30.838694"], ["updated_at", "2016-03-07 15:47:30.838694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:47:30.843834"], ["updated_at", "2016-03-07 15:47:30.843834"]]  (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-03-07 15:47:30.845744"], ["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", "2016-03-07 15:47:30.850029"], ["updated_at", "2016-03-07 15:47:30.850029"]]  (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", "2016-03-07 15:47:30.852863"], ["updated_at", "2016-03-07 15:47:30.852863"]]  (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", "2016-03-07 15:47:30.859235"], ["updated_at", "2016-03-07 15:47:30.859235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:47:30.862620"], ["updated_at", "2016-03-07 15:47:30.862620"]]  (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-03-07 15:47:30.864094"], ["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", "2016-03-07 15:47:30.866135"], ["updated_at", "2016-03-07 15:47:30.866135"]]  (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-03-07 15:47:30.867823"], ["updated_at", "2016-03-07 15:47:30.867823"]]  (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", "2016-03-07 15:47:30.869506"], ["updated_at", "2016-03-07 15:47:30.869506"]]  (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", "2016-03-07 15:47:30.875370"], ["updated_at", "2016-03-07 15:47:30.875370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:47:30.878667"], ["updated_at", "2016-03-07 15:47:30.878667"]]  (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-03-07 15:47:30.880146"], ["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 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", "2016-03-07 15:47:30.886088"], ["updated_at", "2016-03-07 15:47:30.886088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:47:30.889475"], ["updated_at", "2016-03-07 15:47:30.889475"]]  (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-03-07 15:47:30.891024"], ["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", "2016-03-07 15:47:30.897689"], ["updated_at", "2016-03-07 15:47:30.897689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:47:30.900932"], ["updated_at", "2016-03-07 15:47:30.900932"]]  (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-03-07 15:47:30.902367"], ["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", "2016-03-07 15:47:30.905184"], ["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-03-07 15:47:30.914414"], ["updated_at", "2016-03-07 15:47:30.914414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.917850"], ["updated_at", "2016-03-07 15:47:30.917850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:30.919934"], ["updated_at", "2016-03-07 15:47:30.919934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2016-03-07 15:47:30.921165"], ["updated_at", "2016-03-07 15:47:30.921165"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:30.923751"], ["updated_at", "2016-03-07 15:47:30.923751"]]  (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-03-07 15:47:30.925096"], ["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", "2016-03-07 15:47:30.933324"], ["updated_at", "2016-03-07 15:47:30.933324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:30.936753"], ["updated_at", "2016-03-07 15:47:30.936753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:30.938609"], ["updated_at", "2016-03-07 15:47:30.938609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-07 15:47:30.939935"], ["updated_at", "2016-03-07 15:47:30.939935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:30.942654"], ["updated_at", "2016-03-07 15:47:30.942654"]]  (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-03-07 15:47:30.944017"], ["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", "2016-03-07 15:47:30.950795"], ["updated_at", "2016-03-07 15:47:30.950795"]]  (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 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", "2016-03-07 15:47:30.954008"], ["updated_at", "2016-03-07 15:47:30.954008"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2016-03-07 15:47:30.955978"], ["updated_at", "2016-03-07 15:47:30.955978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.957190"], ["updated_at", "2016-03-07 15:47:30.957190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:30.959665"], ["updated_at", "2016-03-07 15:47:30.959665"]]  (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", "2016-03-07 15:47:30.961355"], ["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 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-03-07 15:47:30.969498"], ["updated_at", "2016-03-07 15:47:30.969498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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 94"], ["key", "Key 94"], ["secret", "Account 94"], ["canvas_account_id", "93"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:47:30.972676"], ["updated_at", "2016-03-07 15:47:30.972676"]]  (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", "34"], ["created_at", "2016-03-07 15:47:30.975672"], ["updated_at", "2016-03-07 15:47:30.975672"]]  (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", "29"], ["created_at", "2016-03-07 15:47:30.977419"], ["updated_at", "2016-03-07 15:47:30.977419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:30.980831"], ["updated_at", "2016-03-07 15:47:30.980831"]]  (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-03-07 15:47:30.982727"], ["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 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-03-07 15:47:30.991298"], ["updated_at", "2016-03-07 15:47:30.991298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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 96"], ["key", "Key 96"], ["secret", "Account 96"], ["canvas_account_id", "95"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:47:30.994497"], ["updated_at", "2016-03-07 15:47:30.994497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-03-07 15:47:30.996570"], ["updated_at", "2016-03-07 15:47:30.996570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:30.997772"], ["updated_at", "2016-03-07 15:47:30.997772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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", "2016-03-07 15:47:31.000697"], ["updated_at", "2016-03-07 15:47:31.000697"]]  (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-03-07 15:47:31.002663"], ["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-03-07 15:47:31.010893"], ["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-03-07 15:47:31.015439"], ["updated_at", "2016-03-07 15:47:31.015439"]]  (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-03-07 15:47:31.018078"], ["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", "2016-03-07 15:47:31.021345"], ["updated_at", "2016-03-07 15:47:31.021345"]]  (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-03-07 15:47:31.023434"], ["updated_at", "2016-03-07 15:47:31.023434"]]  (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-03-07 15:47:31.086007"], ["updated_at", "2016-03-07 15:47:31.086007"]]  (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]]  (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", "2016-03-07 15:47:31.094412"], ["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.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.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.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-03-07 15:47:31.114064"], ["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.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", "2016-03-07 15:47:31.117980"], ["updated_at", "2016-03-07 15:47:31.117980"]]  (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", "2016-03-07 15:47:31.120303"], ["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.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]]  (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", "2016-03-07 15:47:31.137327"], ["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", "2016-03-07 15:47:31.140321"], ["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.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.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-03-07 15:47:31.152429"], ["updated_at", "2016-03-07 15:47:31.152429"]]  (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-03-07 15:47:31.154982"], ["updated_at", "2016-03-07 15:47:31.154982"]]  (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", "2016-03-07 15:47:31.156637"], ["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", "2016-03-07 15:47:31.168539"], ["updated_at", "2016-03-07 15:47:31.168539"]]  (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", "2016-03-07 15:47:31.171522"], ["updated_at", "2016-03-07 15:47:31.171522"]]  (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 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, 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-03-07 15:47:31.177662"], ["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-03-07 15:47:31.178902"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.6ms) 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", "2016-03-07 15:47:31.187885"], ["updated_at", "2016-03-07 15:47:31.187885"]]  (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.1ms) 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", "2016-03-07 15:47:31.191567"], ["updated_at", "2016-03-07 15:47:31.191567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:31.193518"], ["updated_at", "2016-03-07 15:47:31.193518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-03-07 15:47:31.194826"], ["updated_at", "2016-03-07 15:47:31.194826"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.198231"], ["updated_at", "2016-03-07 15:47:31.198231"]]  (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-03-07 15:47:31.199906"], ["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-03-07 15:47:31.202445"], ["updated_at", "2016-03-07 15:47:31.202445"]]  (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", "2016-03-07 15:47:31.210508"], ["updated_at", "2016-03-07 15:47:31.210508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:31.213565"], ["updated_at", "2016-03-07 15:47:31.213565"]]  (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", "37"], ["created_at", "2016-03-07 15:47:31.215455"], ["updated_at", "2016-03-07 15:47:31.215455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-07 15:47:31.216597"], ["updated_at", "2016-03-07 15:47:31.216597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.219261"], ["updated_at", "2016-03-07 15:47:31.219261"]]  (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-03-07 15:47:31.220750"], ["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", "2016-03-07 15:47:31.222886"], ["updated_at", "2016-03-07 15:47:31.222886"]]  (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-03-07 15:47:31.224416"], ["updated_at", "2016-03-07 15:47:31.224416"]]  (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", "2016-03-07 15:47:31.225985"], ["updated_at", "2016-03-07 15:47:31.225985"]]  (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.2ms) INSERT INTO "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-03-07 15:47:31.234940"], ["updated_at", "2016-03-07 15:47:31.234940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:31.238311"], ["updated_at", "2016-03-07 15:47:31.238311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:31.240346"], ["updated_at", "2016-03-07 15:47:31.240346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-07 15:47:31.241550"], ["updated_at", "2016-03-07 15:47:31.241550"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.244363"], ["updated_at", "2016-03-07 15:47:31.244363"]]  (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-03-07 15:47:31.245759"], ["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", "2016-03-07 15:47:31.308743"], ["updated_at", "2016-03-07 15:47:31.308743"]]  (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-03-07 15:47:31.311499"], ["updated_at", "2016-03-07 15:47:31.311499"]]  (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-03-07 15:47:31.313538"], ["updated_at", "2016-03-07 15:47:31.313538"]]  (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-03-07 15:47:31.315288"], ["updated_at", "2016-03-07 15:47:31.315288"]]  (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.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 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", "2016-03-07 15:47:31.336601"], ["updated_at", "2016-03-07 15:47:31.336601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:47:31.339742"], ["updated_at", "2016-03-07 15:47:31.339742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-07 15:47:31.342085"], ["updated_at", "2016-03-07 15:47:31.342085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:31.343695"], ["updated_at", "2016-03-07 15:47:31.343695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.347197"], ["updated_at", "2016-03-07 15:47:31.347197"]]  (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-03-07 15:47:31.349089"], ["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", "2016-03-07 15:47:31.355936"], ["updated_at", "2016-03-07 15:47:31.355936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.2ms) INSERT INTO "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-03-07 15:47:31.363717"], ["updated_at", "2016-03-07 15:47:31.363717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) 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", "2016-03-07 15:47:31.367236"], ["updated_at", "2016-03-07 15:47:31.367236"]]  (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", "40"], ["created_at", "2016-03-07 15:47:31.370704"], ["updated_at", "2016-03-07 15:47:31.370704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2016-03-07 15:47:31.372262"], ["updated_at", "2016-03-07 15:47:31.372262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.375030"], ["updated_at", "2016-03-07 15:47:31.375030"]]  (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-03-07 15:47:31.376372"], ["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-03-07 15:47:31.378501"], ["updated_at", "2016-03-07 15:47:31.378501"]]  (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.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", "2016-03-07 15:47:31.399125"], ["updated_at", "2016-03-07 15:47:31.399125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:31.402216"], ["updated_at", "2016-03-07 15:47:31.402216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-07 15:47:31.404101"], ["updated_at", "2016-03-07 15:47:31.404101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:31.405272"], ["updated_at", "2016-03-07 15:47:31.405272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.407894"], ["updated_at", "2016-03-07 15:47:31.407894"]]  (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-03-07 15:47:31.409209"], ["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-03-07 15:47:31.411208"], ["updated_at", "2016-03-07 15:47:31.411208"]]  (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", "2016-03-07 15:47:31.418910"], ["updated_at", "2016-03-07 15:47:31.418910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:47:31.421924"], ["updated_at", "2016-03-07 15:47:31.421924"]]  (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", "42"], ["created_at", "2016-03-07 15:47:31.423930"], ["updated_at", "2016-03-07 15:47:31.423930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:31.425114"], ["updated_at", "2016-03-07 15:47:31.425114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.427467"], ["updated_at", "2016-03-07 15:47:31.427467"]]  (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-03-07 15:47:31.429496"], ["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-03-07 15:47:31.432679"], ["updated_at", "2016-03-07 15:47:31.432679"]]  (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-03-07 15:47:31.435588"], ["updated_at", "2016-03-07 15:47:31.435588"]]  (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-03-07 15:47:31.437381"], ["updated_at", "2016-03-07 15:47:31.437381"]]  (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-03-07 15:47:31.438965"], ["updated_at", "2016-03-07 15:47:31.438965"]]  (0.1ms) 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::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.2ms) 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-03-07 15:47:31.466043"], ["updated_at", "2016-03-07 15:47:31.466043"]]  (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-03-07 15:47:31.469368"], ["updated_at", "2016-03-07 15:47:31.469368"]]  (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", "2016-03-07 15:47:31.472383"], ["updated_at", "2016-03-07 15:47:31.472383"]]  (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", "2016-03-07 15:47:31.475402"], ["updated_at", "2016-03-07 15:47:31.475402"]]  (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.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", "2016-03-07 15:47:31.483765"], ["updated_at", "2016-03-07 15:47:31.483765"]]  (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.1ms) 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-03-07 15:47:31.488036"], ["updated_at", "2016-03-07 15:47:31.488036"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-03-07 15:47:31.490137"], ["updated_at", "2016-03-07 15:47:31.490137"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:31.491780"], ["updated_at", "2016-03-07 15:47:31.491780"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.494980"], ["updated_at", "2016-03-07 15:47:31.494980"]]  (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-03-07 15:47:31.496612"], ["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", "2016-03-07 15:47:31.557044"], ["updated_at", "2016-03-07 15:47:31.557044"]]  (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-03-07 15:47:31.561047"], ["updated_at", "2016-03-07 15:47:31.561047"]]  (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-03-07 15:47:31.563383"], ["updated_at", "2016-03-07 15:47:31.563383"]]  (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.2ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]]  (1.2ms) 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.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", "2016-03-07 15:47:31.575146"], ["updated_at", "2016-03-07 15:47:31.575146"]]  (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 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-03-07 15:47:31.579038"], ["updated_at", "2016-03-07 15:47:31.579038"]]  (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", "2016-03-07 15:47:31.581882"], ["updated_at", "2016-03-07 15:47:31.581882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:31.583511"], ["updated_at", "2016-03-07 15:47:31.583511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.586828"], ["updated_at", "2016-03-07 15:47:31.586828"]]  (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-03-07 15:47:31.588579"], ["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-03-07 15:47:31.591188"], ["updated_at", "2016-03-07 15:47:31.591188"]]  (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-03-07 15:47:31.593671"], ["updated_at", "2016-03-07 15:47:31.593671"]]  (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-03-07 15:47:31.595278"], ["updated_at", "2016-03-07 15:47:31.595278"]]  (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", "2016-03-07 15:47:31.596865"], ["updated_at", "2016-03-07 15:47:31.596865"]]  (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::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-03-07 15:47:31.612711"], ["updated_at", "2016-03-07 15:47:31.612711"]]  (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-03-07 15:47:31.614936"], ["updated_at", "2016-03-07 15:47:31.614936"]]  (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.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", "2016-03-07 15:47:31.625489"], ["updated_at", "2016-03-07 15:47:31.625489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:31.628753"], ["updated_at", "2016-03-07 15:47:31.628753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:31.630797"], ["updated_at", "2016-03-07 15:47:31.630797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-03-07 15:47:31.632028"], ["updated_at", "2016-03-07 15:47:31.632028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.634556"], ["updated_at", "2016-03-07 15:47:31.634556"]]  (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-03-07 15:47:31.635934"], ["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-03-07 15:47:31.639680"], ["updated_at", "2016-03-07 15:47:31.639680"]]  (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-03-07 15:47:31.642406"], ["updated_at", "2016-03-07 15:47:31.642406"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.7ms) 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", "2016-03-07 15:47:31.650616"], ["updated_at", "2016-03-07 15:47:31.650616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:31.654020"], ["updated_at", "2016-03-07 15:47:31.654020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:31.656130"], ["updated_at", "2016-03-07 15:47:31.656130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-07 15:47:31.657470"], ["updated_at", "2016-03-07 15:47:31.657470"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.660175"], ["updated_at", "2016-03-07 15:47:31.660175"]]  (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-03-07 15:47:31.661659"], ["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-03-07 15:47:31.663917"], ["updated_at", "2016-03-07 15:47:31.663917"]]  (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-03-07 15:47:31.666491"], ["updated_at", "2016-03-07 15:47:31.666491"]]  (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-03-07 15:47:31.668237"], ["updated_at", "2016-03-07 15:47:31.668237"]]  (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", "2016-03-07 15:47:31.669804"], ["updated_at", "2016-03-07 15:47:31.669804"]]  (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"], ["updated_at", "2016-03-07 15:47:31.684030"], ["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", "2016-03-07 15:47:31.700246"], ["updated_at", "2016-03-07 15:47:31.700246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:31.703255"], ["updated_at", "2016-03-07 15:47:31.703255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-07 15:47:31.705050"], ["updated_at", "2016-03-07 15:47:31.705050"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:31.706320"], ["updated_at", "2016-03-07 15:47:31.706320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.709141"], ["updated_at", "2016-03-07 15:47:31.709141"]]  (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-03-07 15:47:31.710656"], ["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-03-07 15:47:31.712858"], ["updated_at", "2016-03-07 15:47:31.712858"]]  (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-03-07 15:47:31.715134"], ["updated_at", "2016-03-07 15:47:31.715134"]]  (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-03-07 15:47:31.716738"], ["updated_at", "2016-03-07 15:47:31.716738"]]  (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", "2016-03-07 15:47:31.718189"], ["updated_at", "2016-03-07 15:47:31.718189"]]  (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", "2016-03-07 15:47:31.732254"], ["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.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.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.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (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 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", "2016-03-07 15:47:31.751044"], ["updated_at", "2016-03-07 15:47:31.751044"]]  (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 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.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", "2016-03-07 15:47:31.814452"], ["updated_at", "2016-03-07 15:47:31.814452"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-07 15:47:31.816993"], ["updated_at", "2016-03-07 15:47:31.816993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:31.818250"], ["updated_at", "2016-03-07 15:47:31.818250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.820911"], ["updated_at", "2016-03-07 15:47:31.820911"]]  (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-03-07 15:47:31.822307"], ["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-03-07 15:47:31.824617"], ["updated_at", "2016-03-07 15:47:31.824617"]]  (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-03-07 15:47:31.826906"], ["updated_at", "2016-03-07 15:47:31.826906"]]  (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-03-07 15:47:31.828515"], ["updated_at", "2016-03-07 15:47:31.828515"]]  (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", "2016-03-07 15:47:31.830014"], ["updated_at", "2016-03-07 15:47:31.830014"]]  (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", "2016-03-07 15:47:31.843910"], ["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.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.0ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.5ms) 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", "2016-03-07 15:47:31.862862"], ["updated_at", "2016-03-07 15:47:31.862862"]]  (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.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", "2016-03-07 15:47:31.867254"], ["updated_at", "2016-03-07 15:47:31.867254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:31.869825"], ["updated_at", "2016-03-07 15:47:31.869825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2016-03-07 15:47:31.871480"], ["updated_at", "2016-03-07 15:47:31.871480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.874549"], ["updated_at", "2016-03-07 15:47:31.874549"]]  (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-03-07 15:47:31.876128"], ["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-03-07 15:47:31.878322"], ["updated_at", "2016-03-07 15:47:31.878322"]]  (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.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-03-07 15:47:31.882221"], ["updated_at", "2016-03-07 15:47:31.882221"]]  (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-03-07 15:47:31.884312"], ["updated_at", "2016-03-07 15:47:31.884312"]]  (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-03-07 15:47:31.886431"], ["updated_at", "2016-03-07 15:47:31.886431"]]  (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.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.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", "2016-03-07 15:47:31.902550"], ["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-03-07 15:47:31.908234"], ["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.2ms) 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.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", "2016-03-07 15:47:31.918738"], ["updated_at", "2016-03-07 15:47:31.918738"]]  (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.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-03-07 15:47:31.923738"], ["updated_at", "2016-03-07 15:47:31.923738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-03-07 15:47:31.926215"], ["updated_at", "2016-03-07 15:47:31.926215"]]  (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", "45"], ["created_at", "2016-03-07 15:47:31.927784"], ["updated_at", "2016-03-07 15:47:31.927784"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.930958"], ["updated_at", "2016-03-07 15:47:31.930958"]]  (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-03-07 15:47:31.933190"], ["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", "2016-03-07 15:47:31.941722"], ["updated_at", "2016-03-07 15:47:31.941722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:31.944854"], ["updated_at", "2016-03-07 15:47:31.944854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:31.946774"], ["updated_at", "2016-03-07 15:47:31.946774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2016-03-07 15:47:31.948125"], ["updated_at", "2016-03-07 15:47:31.948125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.950651"], ["updated_at", "2016-03-07 15:47:31.950651"]]  (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-03-07 15:47:31.952088"], ["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", "2016-03-07 15:47:31.960157"], ["updated_at", "2016-03-07 15:47:31.960157"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:47:31.963522"], ["updated_at", "2016-03-07 15:47:31.963522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2016-03-07 15:47:31.965411"], ["updated_at", "2016-03-07 15:47:31.965411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:31.966587"], ["updated_at", "2016-03-07 15:47:31.966587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.969066"], ["updated_at", "2016-03-07 15:47:31.969066"]]  (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-03-07 15:47:31.970428"], ["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 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.2ms) INSERT INTO "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-03-07 15:47:31.980145"], ["updated_at", "2016-03-07 15:47:31.980145"]]  (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 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", "2016-03-07 15:47:31.984095"], ["updated_at", "2016-03-07 15:47:31.984095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:31.986104"], ["updated_at", "2016-03-07 15:47:31.986104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-07 15:47:31.987843"], ["updated_at", "2016-03-07 15:47:31.987843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:31.991290"], ["updated_at", "2016-03-07 15:47:31.991290"]]  (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-03-07 15:47:31.993062"], ["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 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.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-03-07 15:47:32.003071"], ["updated_at", "2016-03-07 15:47:32.003071"]]  (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.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", "2016-03-07 15:47:32.007041"], ["updated_at", "2016-03-07 15:47:32.007041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2016-03-07 15:47:32.009091"], ["updated_at", "2016-03-07 15:47:32.009091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:32.010374"], ["updated_at", "2016-03-07 15:47:32.010374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:32.012785"], ["updated_at", "2016-03-07 15:47:32.012785"]]  (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-03-07 15:47:32.014114"], ["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 135' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:47:32.021996"], ["updated_at", "2016-03-07 15:47:32.021996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) 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", "2016-03-07 15:47:32.025482"], ["updated_at", "2016-03-07 15:47:32.025482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:32.027464"], ["updated_at", "2016-03-07 15:47:32.027464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-03-07 15:47:32.028705"], ["updated_at", "2016-03-07 15:47:32.028705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:32.031322"], ["updated_at", "2016-03-07 15:47:32.031322"]]  (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-03-07 15:47:32.032918"], ["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 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.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 137"], ["key", "Key 137"], ["secret", "Account 137"], ["canvas_account_id", "136"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:47:32.102229"], ["updated_at", "2016-03-07 15:47:32.102229"]]  (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-03-07 15:47:32.106287"], ["updated_at", "2016-03-07 15:47:32.106287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-07 15:47:32.108322"], ["updated_at", "2016-03-07 15:47:32.108322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:47:32.109650"], ["updated_at", "2016-03-07 15:47:32.109650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:32.112297"], ["updated_at", "2016-03-07 15:47:32.112297"]]  (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-03-07 15:47:32.113841"], ["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-03-07 15:47:32.121898"], ["updated_at", "2016-03-07 15:47:32.121898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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-03-07 15:47:32.125134"], ["updated_at", "2016-03-07 15:47:32.125134"]]  (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-03-07 15:47:32.128106"], ["updated_at", "2016-03-07 15:47:32.128106"]]  (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", "52"], ["created_at", "2016-03-07 15:47:32.130241"], ["updated_at", "2016-03-07 15:47:32.130241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:32.133644"], ["updated_at", "2016-03-07 15:47:32.133644"]]  (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-03-07 15:47:32.135451"], ["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.1ms) 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-03-07 15:47:32.145385"], ["updated_at", "2016-03-07 15:47:32.145385"]]  (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.1ms) 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-03-07 15:47:32.149231"], ["updated_at", "2016-03-07 15:47:32.149231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:47:32.151672"], ["updated_at", "2016-03-07 15:47:32.151672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-03-07 15:47:32.153082"], ["updated_at", "2016-03-07 15:47:32.153082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:47:32.155746"], ["updated_at", "2016-03-07 15:47:32.155746"]]  (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-03-07 15:47:32.157101"], ["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", "2016-03-07 15:47:32.160177"], ["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.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 3ms (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 1ms (ActiveRecord: 0.0ms)  (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 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.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", "2016-03-07 15:49:19.668447"], ["updated_at", "2016-03-07 15:49:19.668447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:19.682656"], ["updated_at", "2016-03-07 15:49:19.682656"]]  (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", "2016-03-07 16:49:19.701158"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:49:19.702320"], ["updated_at", "2016-03-07 15:49:19.702320"]]  (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 24ms (Views: 7.1ms | 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.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.7ms | 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.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.1ms) 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-03-07 15:49:19.735031"], ["updated_at", "2016-03-07 15:49:19.735031"]]  (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", "2016-03-07 15:49:19.794248"], ["updated_at", "2016-03-07 15:49:19.794248"]]  (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", "1"], ["created_at", "2016-03-07 15:49:19.796863"], ["updated_at", "2016-03-07 15:49:19.796863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:49:19.798690"], ["updated_at", "2016-03-07 15:49:19.798690"]]  (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 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-03-07 15:49:19.808507"], ["updated_at", "2016-03-07 15:49:19.808507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:19.811857"], ["updated_at", "2016-03-07 15:49:19.811857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:19.813698"], ["updated_at", "2016-03-07 15:49:19.813698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-03-07 15:49:19.814892"], ["updated_at", "2016-03-07 15:49:19.814892"]]  (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", "2016-03-07 15:49:19.820682"], ["updated_at", "2016-03-07 15:49:19.820682"]]  (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.1ms) 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", "2016-03-07 15:49:19.824836"], ["updated_at", "2016-03-07 15:49:19.824836"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:19.827027"], ["updated_at", "2016-03-07 15:49:19.827027"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-07 15:49:19.828463"], ["updated_at", "2016-03-07 15:49:19.828463"]]  (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.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 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.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-03-07 15:49:19.844616"], ["updated_at", "2016-03-07 15:49:19.844616"]]  (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.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", "2016-03-07 15:49:19.848730"], ["updated_at", "2016-03-07 15:49:19.848730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:19.850650"], ["updated_at", "2016-03-07 15:49:19.850650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-03-07 15:49:19.851972"], ["updated_at", "2016-03-07 15:49:19.851972"]]  (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.2ms) INSERT INTO "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-03-07 15:49:19.858339"], ["updated_at", "2016-03-07 15:49:19.858339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:19.861292"], ["updated_at", "2016-03-07 15:49:19.861292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:19.863224"], ["updated_at", "2016-03-07 15:49:19.863224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-03-07 15:49:19.864444"], ["updated_at", "2016-03-07 15:49:19.864444"]]  (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", "2016-03-07 15:49:19.869310"], ["updated_at", "2016-03-07 15:49:19.869310"]]  (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", "2016-03-07 15:49:19.872495"], ["updated_at", "2016-03-07 15:49:19.872495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:19.874493"], ["updated_at", "2016-03-07 15:49:19.874493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-03-07 15:49:19.875771"], ["updated_at", "2016-03-07 15:49:19.875771"]]  (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", "2016-03-07 15:49:19.877480"], ["updated_at", "2016-03-07 15:49:19.877480"]]  (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", "2016-03-07 15:49:19.880524"], ["updated_at", "2016-03-07 15:49:19.880524"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) 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.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", "2016-03-07 15:49:19.886408"], ["updated_at", "2016-03-07 15:49:19.886408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:19.889783"], ["updated_at", "2016-03-07 15:49:19.889783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:19.891825"], ["updated_at", "2016-03-07 15:49:19.891825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-03-07 15:49:19.893039"], ["updated_at", "2016-03-07 15:49:19.893039"]]  (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.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", "2016-03-07 15:49:19.900627"], ["updated_at", "2016-03-07 15:49:19.900627"]]  (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.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.1ms) 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", "2016-03-08 15:49:19.913849"], ["created_at", "2016-03-07 15:49:19.915159"], ["updated_at", "2016-03-07 15:49:19.915159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (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", "2016-03-07 15:49:19.924600"], ["updated_at", "2016-03-07 15:49:19.924600"]]  (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", "2016-03-07 15:49:19.926130"], ["updated_at", "2016-03-07 15:49:19.926130"]]  (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", "2016-03-07 15:49:19.927760"], ["updated_at", "2016-03-07 15:49:19.927760"]]  (0.1ms) 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.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 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:49:19.938947"], ["updated_at", "2016-03-07 15:49:19.938947"]]  (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-03-07 15:49:19.942684"], ["updated_at", "2016-03-07 15:49:19.942684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-07 15:49:19.944816"], ["updated_at", "2016-03-07 15:49:19.944816"]]  (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 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-03-07 15:49:19.950374"], ["updated_at", "2016-03-07 15:49:19.950374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:19.953366"], ["updated_at", "2016-03-07 15:49:19.953366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:19.955528"], ["updated_at", "2016-03-07 15:49:19.955528"]]  (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.1ms) 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", "2016-03-07 15:49:19.960565"], ["updated_at", "2016-03-07 15:49:19.960565"]]  (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", "2016-03-07 15:49:20.019423"], ["updated_at", "2016-03-07 15:49:20.019423"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2016-03-07 15:49:20.022156"], ["updated_at", "2016-03-07 15:49:20.022156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:49:20.023873"], ["updated_at", "2016-03-07 15:49:20.023873"]]  (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-03-07 15:49:20.027845"], ["updated_at", "2016-03-07 15:49:20.027845"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.029718"], ["updated_at", "2016-03-07 15:49:20.029718"]]  (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-03-07 15:49:20.030879"], ["updated_at", "2016-03-07 15:49:20.030879"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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", "2016-03-07 15:49:20.035710"], ["updated_at", "2016-03-07 15:49:20.035710"]]  (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", "2016-03-07 15:49:20.037573"], ["updated_at", "2016-03-07 15:49:20.037573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:20.040499"], ["updated_at", "2016-03-07 15:49:20.040499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:49:20.042348"], ["updated_at", "2016-03-07 15:49:20.042348"]]  (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", "2016-03-07 15:49:20.045335"], ["updated_at", "2016-03-07 15:49:20.045335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:49:20.047127"], ["updated_at", "2016-03-07 15:49:20.047127"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:49:20.051659"], ["updated_at", "2016-03-07 15:49:20.051659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:20.054564"], ["updated_at", "2016-03-07 15:49:20.054564"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:20.056395"], ["updated_at", "2016-03-07 15:49:20.056395"]]  (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", "2016-03-07 15:49:20.068024"], ["updated_at", "2016-03-07 15:49:20.068024"]]  (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", "2016-03-07 15:49:20.070332"], ["updated_at", "2016-03-07 15:49:20.070332"]]  (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", "2016-03-07 15:49:20.080629"], ["updated_at", "2016-03-07 15:49:20.080629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:20.083792"], ["updated_at", "2016-03-07 15:49:20.083792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.085295"], ["updated_at", "2016-03-07 15:49:20.085295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:20.086407"], ["updated_at", "2016-03-07 15:49:20.086407"]]  (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-03-07 15:49:20.088321"], ["updated_at", "2016-03-07 15:49:20.088321"]]  (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", "2016-03-07 15:49:20.094933"], ["updated_at", "2016-03-07 15:49:20.094933"]]  (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", "2016-03-07 15:49:20.097079"], ["updated_at", "2016-03-07 15:49:20.097079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:20.099673"], ["updated_at", "2016-03-07 15:49:20.099673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:20.102512"], ["updated_at", "2016-03-07 15:49:20.102512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.103996"], ["updated_at", "2016-03-07 15:49:20.103996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:49:20.105085"], ["updated_at", "2016-03-07 15:49:20.105085"]]  (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-03-07 15:49:20.106174"], ["updated_at", "2016-03-07 15:49:20.106174"]]  (0.1ms) 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 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", "2016-03-07 15:49:20.112334"], ["updated_at", "2016-03-07 15:49:20.112334"]]  (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", "2016-03-07 15:49:20.114572"], ["updated_at", "2016-03-07 15:49:20.114572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:20.117350"], ["updated_at", "2016-03-07 15:49:20.117350"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:20.120280"], ["updated_at", "2016-03-07 15:49:20.120280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.121859"], ["updated_at", "2016-03-07 15:49:20.121859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:20.123004"], ["updated_at", "2016-03-07 15:49:20.123004"]]  (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-03-07 15:49:20.124115"], ["updated_at", "2016-03-07 15:49:20.124115"]]  (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-03-07 15:49:20.129320"], ["updated_at", "2016-03-07 15:49:20.129320"]]  (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", "2016-03-07 15:49:20.131644"], ["updated_at", "2016-03-07 15:49:20.131644"]]  (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", "2016-03-07 15:49:20.134320"], ["updated_at", "2016-03-07 15:49:20.134320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) 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", "2016-03-07 15:49:20.137065"], ["updated_at", "2016-03-07 15:49:20.137065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.138683"], ["updated_at", "2016-03-07 15:49:20.138683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:49:20.139808"], ["updated_at", "2016-03-07 15:49:20.139808"]]  (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-03-07 15:49:20.140940"], ["updated_at", "2016-03-07 15:49:20.140940"]]  (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", "3"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-03-07 15:49:20.142692"], ["updated_at", "2016-03-07 15:49:20.142692"]]  (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", "4"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-03-07 15:49:20.144624"], ["updated_at", "2016-03-07 15:49:20.144624"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:49:20.149667"], ["updated_at", "2016-03-07 15:49:20.149667"]]  (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-03-07 15:49:20.151704"], ["updated_at", "2016-03-07 15:49:20.151704"]]  (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", "2016-03-07 15:49:20.154460"], ["updated_at", "2016-03-07 15:49:20.154460"]]  (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", "2016-03-07 15:49:20.157344"], ["updated_at", "2016-03-07 15:49:20.157344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.158874"], ["updated_at", "2016-03-07 15:49:20.158874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:20.160010"], ["updated_at", "2016-03-07 15:49:20.160010"]]  (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-03-07 15:49:20.161117"], ["updated_at", "2016-03-07 15:49:20.161117"]]  (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-03-07 15:49:20.162632"], ["updated_at", "2016-03-07 15:49:20.162632"]]  (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-03-07 15:49:20.164400"], ["updated_at", "2016-03-07 15:49:20.164400"]]  (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", "2016-03-07 15:49:20.169756"], ["updated_at", "2016-03-07 15:49:20.169756"]]  (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", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2016-03-07 15:49:20.172176"], ["updated_at", "2016-03-07 15:49:20.172176"]]  (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 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:49:20.177955"], ["updated_at", "2016-03-07 15:49:20.177955"]]  (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", "2016-03-07 15:49:20.182033"], ["updated_at", "2016-03-07 15:49:20.182033"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.183991"], ["updated_at", "2016-03-07 15:49:20.183991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:49:20.185407"], ["updated_at", "2016-03-07 15:49:20.185407"]]  (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", "6"], ["created_at", "2016-03-07 15:49:20.186885"], ["updated_at", "2016-03-07 15:49:20.186885"]]  (0.1ms) 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.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.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.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-03-07 15:49:20.201382"], ["updated_at", "2016-03-07 15:49:20.201382"]]  (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 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.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-03-07 15:49:20.205947"], ["updated_at", "2016-03-07 15:49:20.205947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-07 15:49:20.208407"], ["updated_at", "2016-03-07 15:49:20.208407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:20.209876"], ["updated_at", "2016-03-07 15:49:20.209876"]]  (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 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-03-07 15:49:20.218620"], ["updated_at", "2016-03-07 15:49:20.218620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:20.222303"], ["updated_at", "2016-03-07 15:49:20.222303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-07 15:49:20.224424"], ["updated_at", "2016-03-07 15:49:20.224424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:20.225701"], ["updated_at", "2016-03-07 15:49:20.225701"]]  (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", "2016-03-07 15:49:20.230665"], ["updated_at", "2016-03-07 15:49:20.230665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:20.233617"], ["updated_at", "2016-03-07 15:49:20.233617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2016-03-07 15:49:20.235560"], ["updated_at", "2016-03-07 15:49:20.235560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:20.236688"], ["updated_at", "2016-03-07 15:49:20.236688"]]  (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-03-07 15:49:20.238269"], ["updated_at", "2016-03-07 15:49:20.238269"]]  (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-03-07 15:49:20.240017"], ["updated_at", "2016-03-07 15:49:20.240017"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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 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-03-07 15:49:20.245173"], ["updated_at", "2016-03-07 15:49:20.245173"]]  (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", "2016-03-07 15:49:20.249016"], ["updated_at", "2016-03-07 15:49:20.249016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-03-07 15:49:20.251205"], ["updated_at", "2016-03-07 15:49:20.251205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:20.252678"], ["updated_at", "2016-03-07 15:49:20.252678"]]  (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", "2016-03-07 15:49:20.317582"], ["updated_at", "2016-03-07 15:49:20.317582"]]  (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", "2016-03-07 15:49:20.320041"], ["updated_at", "2016-03-07 15:49:20.320041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:20.323672"], ["updated_at", "2016-03-07 15:49:20.323672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:20.326424"], ["updated_at", "2016-03-07 15:49:20.326424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.328084"], ["updated_at", "2016-03-07 15:49:20.328084"]]  (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", "20"], ["created_at", "2016-03-07 15:49:20.329212"], ["updated_at", "2016-03-07 15:49:20.329212"]]  (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", "2016-03-07 15:49:20.330662"], ["updated_at", "2016-03-07 15:49:20.330662"]]  (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 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.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 58"], ["key", "Key 58"], ["secret", "Account 58"], ["canvas_account_id", "57"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:20.338717"], ["updated_at", "2016-03-07 15:49:20.338717"]]  (0.1ms) 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", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-03-07 15:49:20.342174"], ["updated_at", "2016-03-07 15:49:20.342174"]]  (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", "2016-03-07 15:49:20.346026"], ["updated_at", "2016-03-07 15:49:20.346026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:20.348898"], ["updated_at", "2016-03-07 15:49:20.348898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.350457"], ["updated_at", "2016-03-07 15:49:20.350457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-07 15:49:20.351620"], ["updated_at", "2016-03-07 15:49:20.351620"]]  (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-03-07 15:49:20.352736"], ["updated_at", "2016-03-07 15:49:20.352736"]]  (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-03-07 15:49:20.358933"], ["updated_at", "2016-03-07 15:49:20.358933"]]  (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-03-07 15:49:20.361356"], ["updated_at", "2016-03-07 15:49:20.361356"]]  (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-03-07 15:49:20.364555"], ["updated_at", "2016-03-07 15:49:20.364555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:20.367387"], ["updated_at", "2016-03-07 15:49:20.367387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.368859"], ["updated_at", "2016-03-07 15:49:20.368859"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:20.370109"], ["updated_at", "2016-03-07 15:49:20.370109"]]  (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-03-07 15:49:20.371279"], ["updated_at", "2016-03-07 15:49:20.371279"]]  (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 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.2ms) INSERT INTO "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-03-07 15:49:20.376329"], ["updated_at", "2016-03-07 15:49:20.376329"]]  (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", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2016-03-07 15:49:20.378623"], ["updated_at", "2016-03-07 15:49:20.378623"]]  (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 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", "2016-03-07 15:49:20.382415"], ["updated_at", "2016-03-07 15:49:20.382415"]]  (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.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", "2016-03-07 15:49:20.386103"], ["updated_at", "2016-03-07 15:49:20.386103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.387802"], ["updated_at", "2016-03-07 15:49:20.387802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:49:20.389021"], ["updated_at", "2016-03-07 15:49:20.389021"]]  (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-03-07 15:49:20.390214"], ["updated_at", "2016-03-07 15:49:20.390214"]]  (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-03-07 15:49:20.391930"], ["updated_at", "2016-03-07 15:49:20.391930"]]  (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", "2016-03-07 15:49:20.393749"], ["updated_at", "2016-03-07 15:49:20.393749"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:20.398989"], ["updated_at", "2016-03-07 15:49:20.398989"]]  (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-03-07 15:49:20.400996"], ["updated_at", "2016-03-07 15:49:20.400996"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:20.403810"], ["updated_at", "2016-03-07 15:49:20.403810"]]  (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.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", "2016-03-07 15:49:20.406760"], ["updated_at", "2016-03-07 15:49:20.406760"]]  (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-03-07 15:49:20.408663"], ["updated_at", "2016-03-07 15:49:20.408663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:20.410047"], ["updated_at", "2016-03-07 15:49:20.410047"]]  (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-03-07 15:49:20.411298"], ["updated_at", "2016-03-07 15:49:20.411298"]]  (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-03-07 15:49:20.412948"], ["updated_at", "2016-03-07 15:49:20.412948"]]  (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-03-07 15:49:20.414497"], ["updated_at", "2016-03-07 15:49:20.414497"]]  (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", "2016-03-07 15:49:20.419175"], ["updated_at", "2016-03-07 15:49:20.419175"]]  (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-03-07 15:49:20.421269"], ["updated_at", "2016-03-07 15:49:20.421269"]]  (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", "2016-03-07 15:49:20.424452"], ["updated_at", "2016-03-07 15:49:20.424452"]]  (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 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", "2016-03-07 15:49:20.428793"], ["updated_at", "2016-03-07 15:49:20.428793"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:20.430355"], ["updated_at", "2016-03-07 15:49:20.430355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:49:20.431792"], ["updated_at", "2016-03-07 15:49:20.431792"]]  (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-03-07 15:49:20.433299"], ["updated_at", "2016-03-07 15:49:20.433299"]]  (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-03-07 15:49:20.439804"], ["updated_at", "2016-03-07 15:49:20.439804"]]  (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-03-07 15:49:20.444917"], ["updated_at", "2016-03-07 15:49:20.444917"]]  (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", "2016-03-07 15:49:20.447120"], ["updated_at", "2016-03-07 15:49:20.447120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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", "2016-03-07 15:49:20.448832"], ["updated_at", "2016-03-07 15:49:20.448832"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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.0ms) SAVEPOINT 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", "2016-03-07 15:49:20.455329"], ["updated_at", "2016-03-07 15:49:20.455329"]]  (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", "2016-03-07 15:49:20.461744"], ["updated_at", "2016-03-07 15:49:20.461744"]]  (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.1ms) 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-03-07 15:49:20.467343"], ["updated_at", "2016-03-07 15:49:20.467343"]]  (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-03-07 15:49:20.470365"], ["updated_at", "2016-03-07 15:49:20.470365"]]  (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-03-07 15:49:20.472740"], ["updated_at", "2016-03-07 15:49:20.472740"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:49:20.477319"], ["updated_at", "2016-03-07 15:49:20.477319"]]  (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 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-03-07 15:49:20.485748"], ["updated_at", "2016-03-07 15:49:20.485748"]]  (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.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-03-07 15:49:20.496872"], ["updated_at", "2016-03-07 15:49:20.496872"]]  (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- :users\n"], ["updated_at", "2016-03-07 15:49:20.498908"], ["id", 1]]  (0.1ms) 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.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 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.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 80"], ["key", "Key 80"], ["secret", "Account 80"], ["canvas_account_id", "79"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:20.508108"], ["updated_at", "2016-03-07 15:49:20.508108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:20.511833"], ["updated_at", "2016-03-07 15:49:20.511833"]]  (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-03-07 15:49:20.514002"], ["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.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 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:20.519501"], ["updated_at", "2016-03-07 15:49:20.519501"]]  (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.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-03-07 15:49:20.581629"], ["updated_at", "2016-03-07 15:49:20.581629"]]  (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-03-07 15:49:20.583875"], ["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", "2016-03-07 15:49:20.599286"], ["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", "2016-03-07 15:49:20.603841"], ["updated_at", "2016-03-07 15:49:20.603841"]]  (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-03-07 15:49:20.605816"], ["updated_at", "2016-03-07 15:49:20.605816"]]  (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-03-07 15:49:20.607760"], ["updated_at", "2016-03-07 15:49:20.607760"]]  (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-03-07 15:49:20.610187"], ["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-03-07 15:49:20.611407"], ["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", "2016-03-07 15:49:20.617373"], ["updated_at", "2016-03-07 15:49:20.617373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:20.620696"], ["updated_at", "2016-03-07 15:49:20.620696"]]  (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-03-07 15:49:20.622524"], ["id", 1]]  (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"."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", "2016-03-07 15:49:20.627792"], ["updated_at", "2016-03-07 15:49:20.627792"]]  (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", "2016-03-07 15:49:20.630658"], ["updated_at", "2016-03-07 15:49:20.630658"]]  (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", "2016-03-07 15:49:20.637059"], ["updated_at", "2016-03-07 15:49:20.637059"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:20.640138"], ["updated_at", "2016-03-07 15:49:20.640138"]]  (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-03-07 15:49:20.641696"], ["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", "2016-03-07 15:49:20.643834"], ["updated_at", "2016-03-07 15:49:20.643834"]]  (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", "2016-03-07 15:49:20.647129"], ["updated_at", "2016-03-07 15:49:20.647129"]]  (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-03-07 15:49:20.649305"], ["updated_at", "2016-03-07 15:49:20.649305"]]  (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.1ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (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 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-03-07 15:49:20.656453"], ["updated_at", "2016-03-07 15:49:20.656453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:20.660211"], ["updated_at", "2016-03-07 15:49:20.660211"]]  (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-03-07 15:49:20.661704"], ["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 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", "2016-03-07 15:49:20.667710"], ["updated_at", "2016-03-07 15:49:20.667710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:20.671321"], ["updated_at", "2016-03-07 15:49:20.671321"]]  (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-03-07 15:49:20.672935"], ["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", "2016-03-07 15:49:20.679773"], ["updated_at", "2016-03-07 15:49:20.679773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:20.682990"], ["updated_at", "2016-03-07 15:49:20.682990"]]  (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-03-07 15:49:20.684487"], ["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", "2016-03-07 15:49:20.687544"], ["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.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 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-03-07 15:49:20.696918"], ["updated_at", "2016-03-07 15:49:20.696918"]]  (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.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", "2016-03-07 15:49:20.700508"], ["updated_at", "2016-03-07 15:49:20.700508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:20.702591"], ["updated_at", "2016-03-07 15:49:20.702591"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2016-03-07 15:49:20.703820"], ["updated_at", "2016-03-07 15:49:20.703820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:20.706972"], ["updated_at", "2016-03-07 15:49:20.706972"]]  (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-03-07 15:49:20.708427"], ["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 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", "2016-03-07 15:49:20.716054"], ["updated_at", "2016-03-07 15:49:20.716054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:20.719311"], ["updated_at", "2016-03-07 15:49:20.719311"]]  (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", "32"], ["created_at", "2016-03-07 15:49:20.721708"], ["updated_at", "2016-03-07 15:49:20.721708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-07 15:49:20.723085"], ["updated_at", "2016-03-07 15:49:20.723085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:20.726049"], ["updated_at", "2016-03-07 15:49:20.726049"]]  (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-03-07 15:49:20.727889"], ["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 91' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:49:20.736600"], ["updated_at", "2016-03-07 15:49:20.736600"]]  (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 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", "2016-03-07 15:49:20.740631"], ["updated_at", "2016-03-07 15:49:20.740631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2016-03-07 15:49:20.742840"], ["updated_at", "2016-03-07 15:49:20.742840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:20.744153"], ["updated_at", "2016-03-07 15:49:20.744153"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:20.746905"], ["updated_at", "2016-03-07 15:49:20.746905"]]  (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", "2016-03-07 15:49:20.748216"], ["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", "2016-03-07 15:49:20.755182"], ["updated_at", "2016-03-07 15:49:20.755182"]]  (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 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-03-07 15:49:20.759130"], ["updated_at", "2016-03-07 15:49:20.759130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:20.761081"], ["updated_at", "2016-03-07 15:49:20.761081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2016-03-07 15:49:20.762296"], ["updated_at", "2016-03-07 15:49:20.762296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:20.764807"], ["updated_at", "2016-03-07 15:49:20.764807"]]  (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-03-07 15:49:20.766175"], ["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", "2016-03-07 15:49:20.773709"], ["updated_at", "2016-03-07 15:49:20.773709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:20.776895"], ["updated_at", "2016-03-07 15:49:20.776895"]]  (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", "35"], ["created_at", "2016-03-07 15:49:20.779145"], ["updated_at", "2016-03-07 15:49:20.779145"]]  (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", "30"], ["created_at", "2016-03-07 15:49:20.781079"], ["updated_at", "2016-03-07 15:49:20.781079"]]  (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-03-07 15:49:20.784848"], ["updated_at", "2016-03-07 15:49:20.784848"]]  (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-03-07 15:49:20.786652"], ["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", "2016-03-07 15:49:20.794337"], ["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-03-07 15:49:20.798895"], ["updated_at", "2016-03-07 15:49:20.798895"]]  (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", "2016-03-07 15:49:20.801285"], ["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.1ms) SAVEPOINT active_record_1 SQL (58.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", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:49:20.804273"], ["updated_at", "2016-03-07 15:49:20.804273"]]  (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-03-07 15:49:20.864704"], ["updated_at", "2016-03-07 15:49:20.864704"]]  (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-03-07 15:49:20.866391"], ["updated_at", "2016-03-07 15:49:20.866391"]]  (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", "2016-03-07 15:49:20.874126"], ["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.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) 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-03-07 15:49:20.889247"], ["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", "2016-03-07 15:49:20.892593"], ["updated_at", "2016-03-07 15:49:20.892593"]]  (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", "2016-03-07 15:49:20.894253"], ["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", "2016-03-07 15:49:20.911033"], ["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", "2016-03-07 15:49:20.913840"], ["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", "2016-03-07 15:49:20.925434"], ["updated_at", "2016-03-07 15:49:20.925434"]]  (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-03-07 15:49:20.927898"], ["updated_at", "2016-03-07 15:49:20.927898"]]  (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", "2016-03-07 15:49:20.929553"], ["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", "2016-03-07 15:49:20.941531"], ["updated_at", "2016-03-07 15:49:20.941531"]]  (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", "2016-03-07 15:49:20.944562"], ["updated_at", "2016-03-07 15:49:20.944562"]]  (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 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, 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-03-07 15:49:20.950397"], ["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-03-07 15:49:20.951544"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) 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.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", "2016-03-07 15:49:20.959986"], ["updated_at", "2016-03-07 15:49:20.959986"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:20.963076"], ["updated_at", "2016-03-07 15:49:20.963076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:20.965030"], ["updated_at", "2016-03-07 15:49:20.965030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-03-07 15:49:20.966316"], ["updated_at", "2016-03-07 15:49:20.966316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:20.968773"], ["updated_at", "2016-03-07 15:49:20.968773"]]  (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-03-07 15:49:20.970079"], ["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-03-07 15:49:20.972254"], ["updated_at", "2016-03-07 15:49:20.972254"]]  (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", "2016-03-07 15:49:20.979912"], ["updated_at", "2016-03-07 15:49:20.979912"]]  (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", "2016-03-07 15:49:20.983010"], ["updated_at", "2016-03-07 15:49:20.983010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:20.985120"], ["updated_at", "2016-03-07 15:49:20.985120"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-07 15:49:20.986539"], ["updated_at", "2016-03-07 15:49:20.986539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:20.989434"], ["updated_at", "2016-03-07 15:49:20.989434"]]  (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-03-07 15:49:20.991008"], ["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", "2016-03-07 15:49:20.993291"], ["updated_at", "2016-03-07 15:49:20.993291"]]  (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-03-07 15:49:20.994988"], ["updated_at", "2016-03-07 15:49:20.994988"]]  (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-03-07 15:49:20.996805"], ["updated_at", "2016-03-07 15:49:20.996805"]]  (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.1ms) begin transaction CoalescingPanda::Enrollment Load (0.2ms) 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.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-03-07 15:49:21.006276"], ["updated_at", "2016-03-07 15:49:21.006276"]]  (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", "2016-03-07 15:49:21.010142"], ["updated_at", "2016-03-07 15:49:21.010142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:21.012486"], ["updated_at", "2016-03-07 15:49:21.012486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-07 15:49:21.014384"], ["updated_at", "2016-03-07 15:49:21.014384"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.079516"], ["updated_at", "2016-03-07 15:49:21.079516"]]  (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-03-07 15:49:21.081735"], ["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-03-07 15:49:21.084376"], ["updated_at", "2016-03-07 15:49:21.084376"]]  (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.1ms) 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-03-07 15:49:21.087250"], ["updated_at", "2016-03-07 15:49:21.087250"]]  (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", "2016-03-07 15:49:21.090554"], ["updated_at", "2016-03-07 15:49:21.090554"]]  (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-03-07 15:49:21.092782"], ["updated_at", "2016-03-07 15:49:21.092782"]]  (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.5ms) 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 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", "2016-03-07 15:49:21.115167"], ["updated_at", "2016-03-07 15:49:21.115167"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:21.118412"], ["updated_at", "2016-03-07 15:49:21.118412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-07 15:49:21.120297"], ["updated_at", "2016-03-07 15:49:21.120297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:21.121502"], ["updated_at", "2016-03-07 15:49:21.121502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.123945"], ["updated_at", "2016-03-07 15:49:21.123945"]]  (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-03-07 15:49:21.125309"], ["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", "2016-03-07 15:49:21.131321"], ["updated_at", "2016-03-07 15:49:21.131321"]]  (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.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", "2016-03-07 15:49:21.138810"], ["updated_at", "2016-03-07 15:49:21.138810"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' 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 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:21.142154"], ["updated_at", "2016-03-07 15:49:21.142154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:21.144317"], ["updated_at", "2016-03-07 15:49:21.144317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2016-03-07 15:49:21.145601"], ["updated_at", "2016-03-07 15:49:21.145601"]]  (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.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-03-07 15:49:21.148458"], ["updated_at", "2016-03-07 15:49:21.148458"]]  (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-03-07 15:49:21.150358"], ["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.2ms) INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2016-03-07 15:49:21.153003"], ["updated_at", "2016-03-07 15:49:21.153003"]]  (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.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", "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.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]]  (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", "2016-03-07 15:49:21.173808"], ["updated_at", "2016-03-07 15:49:21.173808"]]  (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.2ms) INSERT INTO "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-03-07 15:49:21.177369"], ["updated_at", "2016-03-07 15:49:21.177369"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-07 15:49:21.179283"], ["updated_at", "2016-03-07 15:49:21.179283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:21.180782"], ["updated_at", "2016-03-07 15:49:21.180782"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.183814"], ["updated_at", "2016-03-07 15:49:21.183814"]]  (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-03-07 15:49:21.185337"], ["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-03-07 15:49:21.187678"], ["updated_at", "2016-03-07 15:49:21.187678"]]  (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.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Submission Load (0.2ms) 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:21.196607"], ["updated_at", "2016-03-07 15:49:21.196607"]]  (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 110' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:49:21.200980"], ["updated_at", "2016-03-07 15:49:21.200980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2016-03-07 15:49:21.203578"], ["updated_at", "2016-03-07 15:49:21.203578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:21.205177"], ["updated_at", "2016-03-07 15:49:21.205177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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", "2016-03-07 15:49:21.208982"], ["updated_at", "2016-03-07 15:49:21.208982"]]  (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-03-07 15:49:21.210736"], ["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-03-07 15:49:21.214123"], ["updated_at", "2016-03-07 15:49:21.214123"]]  (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-03-07 15:49:21.217157"], ["updated_at", "2016-03-07 15:49:21.217157"]]  (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-03-07 15:49:21.219094"], ["updated_at", "2016-03-07 15:49:21.219094"]]  (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-03-07 15:49:21.220892"], ["updated_at", "2016-03-07 15:49:21.220892"]]  (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::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", "2016-03-07 15:49:21.246957"], ["updated_at", "2016-03-07 15:49:21.246957"]]  (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", "2016-03-07 15:49:21.250175"], ["updated_at", "2016-03-07 15:49:21.250175"]]  (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", "2016-03-07 15:49:21.253081"], ["updated_at", "2016-03-07 15:49:21.253081"]]  (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", "2016-03-07 15:49:21.256109"], ["updated_at", "2016-03-07 15:49:21.256109"]]  (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.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", "2016-03-07 15:49:21.264034"], ["updated_at", "2016-03-07 15:49:21.264034"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:21.267269"], ["updated_at", "2016-03-07 15:49:21.267269"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-03-07 15:49:21.269243"], ["updated_at", "2016-03-07 15:49:21.269243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:21.270399"], ["updated_at", "2016-03-07 15:49:21.270399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.332054"], ["updated_at", "2016-03-07 15:49:21.332054"]]  (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", "2016-03-07 15:49:21.334221"], ["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-03-07 15:49:21.336852"], ["updated_at", "2016-03-07 15:49:21.336852"]]  (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-03-07 15:49:21.341171"], ["updated_at", "2016-03-07 15:49:21.341171"]]  (0.1ms) 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-03-07 15:49:21.344163"], ["updated_at", "2016-03-07 15:49:21.344163"]]  (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.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", "2016-03-07 15:49:21.352410"], ["updated_at", "2016-03-07 15:49:21.352410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "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-03-07 15:49:21.355320"], ["updated_at", "2016-03-07 15:49:21.355320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2016-03-07 15:49:21.357347"], ["updated_at", "2016-03-07 15:49:21.357347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:21.358624"], ["updated_at", "2016-03-07 15:49:21.358624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.362051"], ["updated_at", "2016-03-07 15:49:21.362051"]]  (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-03-07 15:49:21.363975"], ["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-03-07 15:49:21.366750"], ["updated_at", "2016-03-07 15:49:21.366750"]]  (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-03-07 15:49:21.369259"], ["updated_at", "2016-03-07 15:49:21.369259"]]  (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-03-07 15:49:21.370945"], ["updated_at", "2016-03-07 15:49:21.370945"]]  (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", "2016-03-07 15:49:21.372585"], ["updated_at", "2016-03-07 15:49:21.372585"]]  (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.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::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.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.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-03-07 15:49:21.390351"], ["updated_at", "2016-03-07 15:49:21.390351"]]  (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-03-07 15:49:21.393785"], ["updated_at", "2016-03-07 15:49:21.393785"]]  (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.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", "2016-03-07 15:49:21.404209"], ["updated_at", "2016-03-07 15:49:21.404209"]]  (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.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", "2016-03-07 15:49:21.407336"], ["updated_at", "2016-03-07 15:49:21.407336"]]  (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", "2016-03-07 15:49:21.409363"], ["updated_at", "2016-03-07 15:49:21.409363"]]  (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", "40"], ["created_at", "2016-03-07 15:49:21.410498"], ["updated_at", "2016-03-07 15:49:21.410498"]]  (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-03-07 15:49:21.414387"], ["updated_at", "2016-03-07 15:49:21.414387"]]  (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-03-07 15:49:21.416218"], ["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-03-07 15:49:21.420655"], ["updated_at", "2016-03-07 15:49:21.420655"]]  (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-03-07 15:49:21.423230"], ["updated_at", "2016-03-07 15:49:21.423230"]]  (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"."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.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", "2016-03-07 15:49:21.431298"], ["updated_at", "2016-03-07 15:49:21.431298"]]  (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.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-03-07 15:49:21.434354"], ["updated_at", "2016-03-07 15:49:21.434354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:21.436501"], ["updated_at", "2016-03-07 15:49:21.436501"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-07 15:49:21.437835"], ["updated_at", "2016-03-07 15:49:21.437835"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.440673"], ["updated_at", "2016-03-07 15:49:21.440673"]]  (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-03-07 15:49:21.442285"], ["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-03-07 15:49:21.444571"], ["updated_at", "2016-03-07 15:49:21.444571"]]  (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-03-07 15:49:21.447115"], ["updated_at", "2016-03-07 15:49:21.447115"]]  (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-03-07 15:49:21.448811"], ["updated_at", "2016-03-07 15:49:21.448811"]]  (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", "2016-03-07 15:49:21.450405"], ["updated_at", "2016-03-07 15:49:21.450405"]]  (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", "2016-03-07 15:49:21.466441"], ["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.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.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", "2016-03-07 15:49:21.484972"], ["updated_at", "2016-03-07 15:49:21.484972"]]  (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", "2016-03-07 15:49:21.489068"], ["updated_at", "2016-03-07 15:49:21.489068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-07 15:49:21.491625"], ["updated_at", "2016-03-07 15:49:21.491625"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:21.493286"], ["updated_at", "2016-03-07 15:49:21.493286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.496528"], ["updated_at", "2016-03-07 15:49:21.496528"]]  (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-03-07 15:49:21.498203"], ["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-03-07 15:49:21.500608"], ["updated_at", "2016-03-07 15:49:21.500608"]]  (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-03-07 15:49:21.502932"], ["updated_at", "2016-03-07 15:49:21.502932"]]  (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-03-07 15:49:21.504513"], ["updated_at", "2016-03-07 15:49:21.504513"]]  (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", "2016-03-07 15:49:21.506068"], ["updated_at", "2016-03-07 15:49:21.506068"]]  (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.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.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.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- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-03-07 15:49:21.525886"], ["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.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.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (1.3ms) 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 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:49:21.607989"], ["updated_at", "2016-03-07 15:49:21.607989"]]  (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.1ms) 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", "2016-03-07 15:49:21.612604"], ["updated_at", "2016-03-07 15:49:21.612604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-07 15:49:21.615113"], ["updated_at", "2016-03-07 15:49:21.615113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:21.616678"], ["updated_at", "2016-03-07 15:49:21.616678"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.619710"], ["updated_at", "2016-03-07 15:49:21.619710"]]  (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-03-07 15:49:21.621211"], ["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-03-07 15:49:21.624180"], ["updated_at", "2016-03-07 15:49:21.624180"]]  (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-03-07 15:49:21.626751"], ["updated_at", "2016-03-07 15:49:21.626751"]]  (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-03-07 15:49:21.628636"], ["updated_at", "2016-03-07 15:49:21.628636"]]  (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", "2016-03-07 15:49:21.630262"], ["updated_at", "2016-03-07 15:49:21.630262"]]  (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- :users\n"], ["updated_at", "2016-03-07 15:49:21.645098"], ["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.5ms) 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 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-03-07 15:49:21.661516"], ["updated_at", "2016-03-07 15:49:21.661516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:21.664791"], ["updated_at", "2016-03-07 15:49:21.664791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:21.666885"], ["updated_at", "2016-03-07 15:49:21.666885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2016-03-07 15:49:21.668455"], ["updated_at", "2016-03-07 15:49:21.668455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.671540"], ["updated_at", "2016-03-07 15:49:21.671540"]]  (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-03-07 15:49:21.673128"], ["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-03-07 15:49:21.675579"], ["updated_at", "2016-03-07 15:49:21.675579"]]  (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-03-07 15:49:21.677890"], ["updated_at", "2016-03-07 15:49:21.677890"]]  (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-03-07 15:49:21.679469"], ["updated_at", "2016-03-07 15:49:21.679469"]]  (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", "2016-03-07 15:49:21.681070"], ["updated_at", "2016-03-07 15:49:21.681070"]]  (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.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]] CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.697532"], ["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-03-07 15:49:21.705142"], ["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.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 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", "2016-03-07 15:49:21.717698"], ["updated_at", "2016-03-07 15:49:21.717698"]]  (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 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.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-03-07 15:49:21.723122"], ["updated_at", "2016-03-07 15:49:21.723122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-03-07 15:49:21.725786"], ["updated_at", "2016-03-07 15:49:21.725786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:21.727406"], ["updated_at", "2016-03-07 15:49:21.727406"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.730445"], ["updated_at", "2016-03-07 15:49:21.730445"]]  (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-03-07 15:49:21.731997"], ["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 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-03-07 15:49:21.739617"], ["updated_at", "2016-03-07 15:49:21.739617"]]  (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.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 128"], ["key", "Key 128"], ["secret", "Account 128"], ["canvas_account_id", "127"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:21.742802"], ["updated_at", "2016-03-07 15:49:21.742802"]]  (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", "51"], ["created_at", "2016-03-07 15:49:21.745921"], ["updated_at", "2016-03-07 15:49:21.745921"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2016-03-07 15:49:21.747595"], ["updated_at", "2016-03-07 15:49:21.747595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.751167"], ["updated_at", "2016-03-07 15:49:21.751167"]]  (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-03-07 15:49:21.753896"], ["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 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-03-07 15:49:21.763864"], ["updated_at", "2016-03-07 15:49:21.763864"]]  (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.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 130' 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 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:21.768327"], ["updated_at", "2016-03-07 15:49:21.768327"]]  (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", "52"], ["created_at", "2016-03-07 15:49:21.771721"], ["updated_at", "2016-03-07 15:49:21.771721"]]  (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", "47"], ["created_at", "2016-03-07 15:49:21.774082"], ["updated_at", "2016-03-07 15:49:21.774082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.777819"], ["updated_at", "2016-03-07 15:49:21.777819"]]  (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-03-07 15:49:21.779616"], ["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 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", "2016-03-07 15:49:21.788153"], ["updated_at", "2016-03-07 15:49:21.788153"]]  (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 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-03-07 15:49:21.792873"], ["updated_at", "2016-03-07 15:49:21.792873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:21.795359"], ["updated_at", "2016-03-07 15:49:21.795359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-07 15:49:21.796914"], ["updated_at", "2016-03-07 15:49:21.796914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.799903"], ["updated_at", "2016-03-07 15:49:21.799903"]]  (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-03-07 15:49:21.801441"], ["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 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", "2016-03-07 15:49:21.809442"], ["updated_at", "2016-03-07 15:49:21.809442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:21.812555"], ["updated_at", "2016-03-07 15:49:21.812555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2016-03-07 15:49:21.814453"], ["updated_at", "2016-03-07 15:49:21.814453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:21.815710"], ["updated_at", "2016-03-07 15:49:21.815710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.818149"], ["updated_at", "2016-03-07 15:49:21.818149"]]  (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-03-07 15:49:21.819458"], ["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", "2016-03-07 15:49:21.826617"], ["updated_at", "2016-03-07 15:49:21.826617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:21.829637"], ["updated_at", "2016-03-07 15:49:21.829637"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:21.831408"], ["updated_at", "2016-03-07 15:49:21.831408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-03-07 15:49:21.832705"], ["updated_at", "2016-03-07 15:49:21.832705"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.893533"], ["updated_at", "2016-03-07 15:49:21.893533"]]  (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", "2016-03-07 15:49:21.895635"], ["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", "2016-03-07 15:49:21.903401"], ["updated_at", "2016-03-07 15:49:21.903401"]]  (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 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", "2016-03-07 15:49:21.907862"], ["updated_at", "2016-03-07 15:49:21.907862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-07 15:49:21.910711"], ["updated_at", "2016-03-07 15:49:21.910711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:21.912353"], ["updated_at", "2016-03-07 15:49:21.912353"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.915615"], ["updated_at", "2016-03-07 15:49:21.915615"]]  (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-03-07 15:49:21.917338"], ["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", "2016-03-07 15:49:21.924517"], ["updated_at", "2016-03-07 15:49:21.924517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:21.927621"], ["updated_at", "2016-03-07 15:49:21.927621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:21.929444"], ["updated_at", "2016-03-07 15:49:21.929444"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2016-03-07 15:49:21.930958"], ["updated_at", "2016-03-07 15:49:21.930958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.933456"], ["updated_at", "2016-03-07 15:49:21.933456"]]  (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-03-07 15:49:21.935156"], ["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.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 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.2ms) INSERT INTO "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-03-07 15:49:21.946760"], ["updated_at", "2016-03-07 15:49:21.946760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:21.950133"], ["updated_at", "2016-03-07 15:49:21.950133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:21.952094"], ["updated_at", "2016-03-07 15:49:21.952094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-03-07 15:49:21.953386"], ["updated_at", "2016-03-07 15:49:21.953386"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:21.955996"], ["updated_at", "2016-03-07 15:49:21.955996"]]  (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-03-07 15:49:21.957357"], ["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", "2016-03-07 15:49:21.960303"], ["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.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 500 Internal Server Error in 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 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 1ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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.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 1"], ["key", "Key 1"], ["secret", "Account 1"], ["canvas_account_id", "1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: foo.com\n"], ["created_at", "2016-03-07 15:49:53.418423"], ["updated_at", "2016-03-07 15:49:53.418423"]]  (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", "2016-03-07 15:49:53.435192"], ["updated_at", "2016-03-07 15:49:53.435192"]]  (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", "2016-03-07 16:49:53.460032"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:49:53.461525"], ["updated_at", "2016-03-07 15:49:53.461525"]]  (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 32ms (Views: 9.0ms | ActiveRecord: 1.0ms) 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.6ms) 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.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 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-03-07 15:49:53.498455"], ["updated_at", "2016-03-07 15:49:53.498455"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 3"], ["key", "Key 3"], ["secret", "Account 3"], ["canvas_account_id", "3"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:53.555789"], ["updated_at", "2016-03-07 15:49:53.555789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "coalescing_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-03-07 15:49:53.558849"], ["updated_at", "2016-03-07 15:49:53.558849"]]  (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", "2016-03-07 15:49:53.561781"], ["updated_at", "2016-03-07 15:49:53.561781"]]  (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", "2016-03-07 15:49:53.573475"], ["updated_at", "2016-03-07 15:49:53.573475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:53.576463"], ["updated_at", "2016-03-07 15:49:53.576463"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:53.578278"], ["updated_at", "2016-03-07 15:49:53.578278"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-03-07 15:49:53.579408"], ["updated_at", "2016-03-07 15:49:53.579408"]]  (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 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-03-07 15:49:53.585305"], ["updated_at", "2016-03-07 15:49:53.585305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) 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", "2016-03-07 15:49:53.588426"], ["updated_at", "2016-03-07 15:49:53.588426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:53.590267"], ["updated_at", "2016-03-07 15:49:53.590267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-07 15:49:53.591420"], ["updated_at", "2016-03-07 15:49:53.591420"]]  (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-03-07 15:49:53.608801"], ["updated_at", "2016-03-07 15:49:53.608801"]]  (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.1ms) 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", "2016-03-07 15:49:53.613869"], ["updated_at", "2016-03-07 15:49:53.613869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:53.616490"], ["updated_at", "2016-03-07 15:49:53.616490"]]  (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", "4"], ["created_at", "2016-03-07 15:49:53.618779"], ["updated_at", "2016-03-07 15:49:53.618779"]]  (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.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-03-07 15:49:53.627009"], ["updated_at", "2016-03-07 15:49:53.627009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) 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", "2016-03-07 15:49:53.630508"], ["updated_at", "2016-03-07 15:49:53.630508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:53.632335"], ["updated_at", "2016-03-07 15:49:53.632335"]]  (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", "5"], ["created_at", "2016-03-07 15:49:53.633883"], ["updated_at", "2016-03-07 15:49:53.633883"]]  (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", "2016-03-07 15:49:53.639644"], ["updated_at", "2016-03-07 15:49:53.639644"]]  (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-03-07 15:49:53.642833"], ["updated_at", "2016-03-07 15:49:53.642833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:53.644573"], ["updated_at", "2016-03-07 15:49:53.644573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-03-07 15:49:53.645736"], ["updated_at", "2016-03-07 15:49:53.645736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:49:53.647811"], ["updated_at", "2016-03-07 15:49:53.647811"]]  (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-03-07 15:49:53.652150"], ["updated_at", "2016-03-07 15:49:53.652150"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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", "2016-03-07 15:49:53.657475"], ["updated_at", "2016-03-07 15:49:53.657475"]]  (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-03-07 15:49:53.660634"], ["updated_at", "2016-03-07 15:49:53.660634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:53.662414"], ["updated_at", "2016-03-07 15:49:53.662414"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-03-07 15:49:53.663524"], ["updated_at", "2016-03-07 15:49:53.663524"]]  (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", "2016-03-07 15:49:53.669552"], ["updated_at", "2016-03-07 15:49:53.669552"]]  (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.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.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-03-08 15:49:53.681873"], ["created_at", "2016-03-07 15:49:53.683049"], ["updated_at", "2016-03-07 15:49:53.683049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:49:53.691816"], ["updated_at", "2016-03-07 15:49:53.691816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:49:53.694271"], ["updated_at", "2016-03-07 15:49:53.694271"]]  (0.1ms) 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-03-07 15:49:53.696450"], ["updated_at", "2016-03-07 15:49:53.696450"]]  (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.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 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", "2016-03-07 15:49:53.708622"], ["updated_at", "2016-03-07 15:49:53.708622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:53.711883"], ["updated_at", "2016-03-07 15:49:53.711883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-07 15:49:53.713750"], ["updated_at", "2016-03-07 15:49:53.713750"]]  (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.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", "2016-03-07 15:49:53.720169"], ["updated_at", "2016-03-07 15:49:53.720169"]]  (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.1ms) 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-03-07 15:49:53.724482"], ["updated_at", "2016-03-07 15:49:53.724482"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:53.775013"], ["updated_at", "2016-03-07 15:49:53.775013"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:53.780547"], ["updated_at", "2016-03-07 15:49:53.780547"]]  (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.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", "2016-03-07 15:49:53.785161"], ["updated_at", "2016-03-07 15:49:53.785161"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2016-03-07 15:49:53.787477"], ["updated_at", "2016-03-07 15:49:53.787477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:49:53.788763"], ["updated_at", "2016-03-07 15:49:53.788763"]]  (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", "2016-03-07 15:49:53.792869"], ["updated_at", "2016-03-07 15:49:53.792869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:53.794913"], ["updated_at", "2016-03-07 15:49:53.794913"]]  (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-03-07 15:49:53.796180"], ["updated_at", "2016-03-07 15:49:53.796180"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:49:53.801073"], ["updated_at", "2016-03-07 15:49:53.801073"]]  (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", "2016-03-07 15:49:53.802915"], ["updated_at", "2016-03-07 15:49:53.802915"]]  (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", "2016-03-07 15:49:53.806709"], ["updated_at", "2016-03-07 15:49:53.806709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:49:53.809172"], ["updated_at", "2016-03-07 15:49:53.809172"]]  (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", "2016-03-07 15:49:53.812238"], ["updated_at", "2016-03-07 15:49:53.812238"]]  (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", "2016-03-07 15:49:53.814182"], ["updated_at", "2016-03-07 15:49:53.814182"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.7ms) 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 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.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 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:53.819883"], ["updated_at", "2016-03-07 15:49:53.819883"]]  (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 27' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' 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 27"], ["key", "Key 27"], ["secret", "Account 27"], ["canvas_account_id", "27"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:53.824865"], ["updated_at", "2016-03-07 15:49:53.824865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:53.827339"], ["updated_at", "2016-03-07 15:49:53.827339"]]  (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 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-03-07 15:49:53.839606"], ["updated_at", "2016-03-07 15:49:53.839606"]]  (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-03-07 15:49:53.842039"], ["updated_at", "2016-03-07 15:49:53.842039"]]  (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-03-07 15:49:53.853479"], ["updated_at", "2016-03-07 15:49:53.853479"]]  (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.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-03-07 15:49:53.858306"], ["updated_at", "2016-03-07 15:49:53.858306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:53.860285"], ["updated_at", "2016-03-07 15:49:53.860285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:53.861682"], ["updated_at", "2016-03-07 15:49:53.861682"]]  (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", "2016-03-07 15:49:53.863777"], ["updated_at", "2016-03-07 15:49:53.863777"]]  (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", "2016-03-07 15:49:53.874190"], ["updated_at", "2016-03-07 15:49:53.874190"]]  (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", "2016-03-07 15:49:53.876789"], ["updated_at", "2016-03-07 15:49:53.876789"]]  (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", "2016-03-07 15:49:53.879998"], ["updated_at", "2016-03-07 15:49:53.879998"]]  (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", "2016-03-07 15:49:53.883665"], ["updated_at", "2016-03-07 15:49:53.883665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:53.885597"], ["updated_at", "2016-03-07 15:49:53.885597"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:49:53.886910"], ["updated_at", "2016-03-07 15:49:53.886910"]]  (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-03-07 15:49:53.888158"], ["updated_at", "2016-03-07 15:49:53.888158"]]  (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", "2016-03-07 15:49:53.894219"], ["updated_at", "2016-03-07 15:49:53.894219"]]  (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", "2016-03-07 15:49:53.896313"], ["updated_at", "2016-03-07 15:49:53.896313"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:53.898923"], ["updated_at", "2016-03-07 15:49:53.898923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:53.901755"], ["updated_at", "2016-03-07 15:49:53.901755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:53.903315"], ["updated_at", "2016-03-07 15:49:53.903315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:53.904385"], ["updated_at", "2016-03-07 15:49:53.904385"]]  (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-03-07 15:49:53.905585"], ["updated_at", "2016-03-07 15:49:53.905585"]]  (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.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-03-07 15:49:53.910839"], ["updated_at", "2016-03-07 15:49:53.910839"]]  (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", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2016-03-07 15:49:53.912772"], ["updated_at", "2016-03-07 15:49:53.912772"]]  (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 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", "2016-03-07 15:49:53.917170"], ["updated_at", "2016-03-07 15:49:53.917170"]]  (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 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 (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", "2016-03-07 15:49:53.921639"], ["updated_at", "2016-03-07 15:49:53.921639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:53.923685"], ["updated_at", "2016-03-07 15:49:53.923685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:49:53.925064"], ["updated_at", "2016-03-07 15:49:53.925064"]]  (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-03-07 15:49:53.926410"], ["updated_at", "2016-03-07 15:49:53.926410"]]  (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", "2016-03-07 15:49:53.928201"], ["updated_at", "2016-03-07 15:49:53.928201"]]  (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-03-07 15:49:53.931497"], ["updated_at", "2016-03-07 15:49:53.931497"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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-03-07 15:49:53.937096"], ["updated_at", "2016-03-07 15:49:53.937096"]]  (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-03-07 15:49:53.939163"], ["updated_at", "2016-03-07 15:49:53.939163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:53.941692"], ["updated_at", "2016-03-07 15:49:53.941692"]]  (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 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", "2016-03-07 15:49:53.944891"], ["updated_at", "2016-03-07 15:49:53.944891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:53.946476"], ["updated_at", "2016-03-07 15:49:53.946476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:53.947592"], ["updated_at", "2016-03-07 15:49:53.947592"]]  (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-03-07 15:49:53.948784"], ["updated_at", "2016-03-07 15:49:53.948784"]]  (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-03-07 15:49:53.950487"], ["updated_at", "2016-03-07 15:49:53.950487"]]  (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-03-07 15:49:53.952322"], ["updated_at", "2016-03-07 15:49:53.952322"]]  (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-03-07 15:49:53.957199"], ["updated_at", "2016-03-07 15:49:53.957199"]]  (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", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2016-03-07 15:49:53.959220"], ["updated_at", "2016-03-07 15:49:53.959220"]]  (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 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:49:53.963972"], ["updated_at", "2016-03-07 15:49:53.963972"]]  (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", "2016-03-07 15:49:53.968469"], ["updated_at", "2016-03-07 15:49:53.968469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:53.970537"], ["updated_at", "2016-03-07 15:49:53.970537"]]  (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", "15"], ["created_at", "2016-03-07 15:49:53.972128"], ["updated_at", "2016-03-07 15:49:53.972128"]]  (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-03-07 15:49:53.973867"], ["updated_at", "2016-03-07 15:49:53.973867"]]  (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) 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", "2016-03-07 15:49:53.986935"], ["updated_at", "2016-03-07 15:49:53.986935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:53.990220"], ["updated_at", "2016-03-07 15:49:53.990220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-07 15:49:53.992057"], ["updated_at", "2016-03-07 15:49:53.992057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:53.993228"], ["updated_at", "2016-03-07 15:49:53.993228"]]  (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", "2016-03-07 15:49:53.999131"], ["updated_at", "2016-03-07 15:49:53.999131"]]  (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", "2016-03-07 15:49:54.002692"], ["updated_at", "2016-03-07 15:49:54.002692"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-07 15:49:54.004790"], ["updated_at", "2016-03-07 15:49:54.004790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:54.006008"], ["updated_at", "2016-03-07 15:49:54.006008"]]  (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", "2016-03-07 15:49:54.011158"], ["updated_at", "2016-03-07 15:49:54.011158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:54.014374"], ["updated_at", "2016-03-07 15:49:54.014374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2016-03-07 15:49:54.016371"], ["updated_at", "2016-03-07 15:49:54.016371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:54.017798"], ["updated_at", "2016-03-07 15:49:54.017798"]]  (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-03-07 15:49:54.019733"], ["updated_at", "2016-03-07 15:49:54.019733"]]  (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-03-07 15:49:54.021333"], ["updated_at", "2016-03-07 15:49:54.021333"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (0.0ms) ROLLBACK TO 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 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-03-07 15:49:54.026734"], ["updated_at", "2016-03-07 15:49:54.026734"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' 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 54"], ["key", "Key 54"], ["secret", "Account 54"], ["canvas_account_id", "53"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:54.029769"], ["updated_at", "2016-03-07 15:49:54.029769"]]  (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", "23"], ["created_at", "2016-03-07 15:49:54.089620"], ["updated_at", "2016-03-07 15:49:54.089620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:54.091352"], ["updated_at", "2016-03-07 15:49:54.091352"]]  (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.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", "2016-03-07 15:49:54.104172"], ["updated_at", "2016-03-07 15:49:54.104172"]]  (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", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2016-03-07 15:49:54.106678"], ["updated_at", "2016-03-07 15:49:54.106678"]]  (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-03-07 15:49:54.111099"], ["updated_at", "2016-03-07 15:49:54.111099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:54.114169"], ["updated_at", "2016-03-07 15:49:54.114169"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:54.115716"], ["updated_at", "2016-03-07 15:49:54.115716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:54.116895"], ["updated_at", "2016-03-07 15:49:54.116895"]]  (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", "2016-03-07 15:49:54.118026"], ["updated_at", "2016-03-07 15:49:54.118026"]]  (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 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", "2016-03-07 15:49:54.124893"], ["updated_at", "2016-03-07 15:49:54.124893"]]  (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-03-07 15:49:54.126981"], ["updated_at", "2016-03-07 15:49:54.126981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:54.129853"], ["updated_at", "2016-03-07 15:49:54.129853"]]  (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", "2016-03-07 15:49:54.133562"], ["updated_at", "2016-03-07 15:49:54.133562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:54.135634"], ["updated_at", "2016-03-07 15:49:54.135634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-07 15:49:54.136915"], ["updated_at", "2016-03-07 15:49:54.136915"]]  (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-03-07 15:49:54.138132"], ["updated_at", "2016-03-07 15:49:54.138132"]]  (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", "2016-03-07 15:49:54.144358"], ["updated_at", "2016-03-07 15:49:54.144358"]]  (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-03-07 15:49:54.146698"], ["updated_at", "2016-03-07 15:49:54.146698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:54.149540"], ["updated_at", "2016-03-07 15:49:54.149540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:54.152327"], ["updated_at", "2016-03-07 15:49:54.152327"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:54.153847"], ["updated_at", "2016-03-07 15:49:54.153847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:54.154969"], ["updated_at", "2016-03-07 15:49:54.154969"]]  (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-03-07 15:49:54.156495"], ["updated_at", "2016-03-07 15:49:54.156495"]]  (0.1ms) 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.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", "2016-03-07 15:49:54.162598"], ["updated_at", "2016-03-07 15:49:54.162598"]]  (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", "2016-03-07 15:49:54.164535"], ["updated_at", "2016-03-07 15:49:54.164535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:54.167009"], ["updated_at", "2016-03-07 15:49:54.167009"]]  (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 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", "2016-03-07 15:49:54.170319"], ["updated_at", "2016-03-07 15:49:54.170319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:54.172048"], ["updated_at", "2016-03-07 15:49:54.172048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:49:54.173345"], ["updated_at", "2016-03-07 15:49:54.173345"]]  (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-03-07 15:49:54.174674"], ["updated_at", "2016-03-07 15:49:54.174674"]]  (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-03-07 15:49:54.176677"], ["updated_at", "2016-03-07 15:49:54.176677"]]  (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", "2016-03-07 15:49:54.179603"], ["updated_at", "2016-03-07 15:49:54.179603"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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", "2016-03-07 15:49:54.185646"], ["updated_at", "2016-03-07 15:49:54.185646"]]  (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-03-07 15:49:54.187822"], ["updated_at", "2016-03-07 15:49:54.187822"]]  (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", "2016-03-07 15:49:54.190674"], ["updated_at", "2016-03-07 15:49:54.190674"]]  (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-03-07 15:49:54.194982"], ["updated_at", "2016-03-07 15:49:54.194982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:54.197412"], ["updated_at", "2016-03-07 15:49:54.197412"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:54.198939"], ["updated_at", "2016-03-07 15:49:54.198939"]]  (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-03-07 15:49:54.200398"], ["updated_at", "2016-03-07 15:49:54.200398"]]  (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", "1"], ["created_at", "2016-03-07 15:49:54.202376"], ["updated_at", "2016-03-07 15:49:54.202376"]]  (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-03-07 15:49:54.204265"], ["updated_at", "2016-03-07 15:49:54.204265"]]  (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", "2016-03-07 15:49:54.209430"], ["updated_at", "2016-03-07 15:49:54.209430"]]  (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-03-07 15:49:54.211405"], ["updated_at", "2016-03-07 15:49:54.211405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:54.213962"], ["updated_at", "2016-03-07 15:49:54.213962"]]  (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 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-03-07 15:49:54.216874"], ["updated_at", "2016-03-07 15:49:54.216874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:49:54.218909"], ["updated_at", "2016-03-07 15:49:54.218909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:49:54.220265"], ["updated_at", "2016-03-07 15:49:54.220265"]]  (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-03-07 15:49:54.221575"], ["updated_at", "2016-03-07 15:49:54.221575"]]  (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.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.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-03-07 15:49:54.228119"], ["updated_at", "2016-03-07 15:49:54.228119"]]  (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", "2016-03-07 15:49:54.234711"], ["updated_at", "2016-03-07 15:49:54.234711"]]  (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", "2016-03-07 15:49:54.237370"], ["updated_at", "2016-03-07 15:49:54.237370"]]  (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-03-07 15:49:54.239485"], ["updated_at", "2016-03-07 15:49:54.239485"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) 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.1ms) 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", "2016-03-07 15:49:54.247854"], ["updated_at", "2016-03-07 15:49:54.247854"]]  (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.2ms) INSERT INTO "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-03-07 15:49:54.255437"], ["updated_at", "2016-03-07 15:49:54.255437"]]  (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-03-07 15:49:54.260639"], ["updated_at", "2016-03-07 15:49:54.260639"]]  (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-03-07 15:49:54.263464"], ["updated_at", "2016-03-07 15:49:54.263464"]]  (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-03-07 15:49:54.265688"], ["updated_at", "2016-03-07 15:49:54.265688"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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-03-07 15:49:54.270462"], ["updated_at", "2016-03-07 15:49:54.270462"]]  (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-03-07 15:49:54.278388"], ["updated_at", "2016-03-07 15:49:54.278388"]]  (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", "2016-03-07 15:49:54.292339"], ["updated_at", "2016-03-07 15:49:54.292339"]]  (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-03-07 15:49:54.294303"], ["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.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 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", "2016-03-07 15:49:54.301113"], ["updated_at", "2016-03-07 15:49:54.301113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:49:54.363340"], ["updated_at", "2016-03-07 15:49:54.363340"]]  (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-03-07 15:49:54.365471"], ["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", "2016-03-07 15:49:54.370987"], ["updated_at", "2016-03-07 15:49:54.370987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:54.374158"], ["updated_at", "2016-03-07 15:49:54.374158"]]  (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-03-07 15:49:54.375811"], ["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", "2016-03-07 15:49:54.387719"], ["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", "2016-03-07 15:49:54.392105"], ["updated_at", "2016-03-07 15:49:54.392105"]]  (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-03-07 15:49:54.394007"], ["updated_at", "2016-03-07 15:49:54.394007"]]  (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", "2016-03-07 15:49:54.395626"], ["updated_at", "2016-03-07 15:49:54.395626"]]  (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-03-07 15:49:54.397812"], ["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-03-07 15:49:54.398990"], ["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", "2016-03-07 15:49:54.404947"], ["updated_at", "2016-03-07 15:49:54.404947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:54.408333"], ["updated_at", "2016-03-07 15:49:54.408333"]]  (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-03-07 15:49:54.409764"], ["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-03-07 15:49:54.413625"], ["updated_at", "2016-03-07 15:49:54.413625"]]  (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", "2016-03-07 15:49:54.415839"], ["updated_at", "2016-03-07 15:49:54.415839"]]  (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", "2016-03-07 15:49:54.422965"], ["updated_at", "2016-03-07 15:49:54.422965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:54.426383"], ["updated_at", "2016-03-07 15:49:54.426383"]]  (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-03-07 15:49:54.427894"], ["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", "2016-03-07 15:49:54.430089"], ["updated_at", "2016-03-07 15:49:54.430089"]]  (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-03-07 15:49:54.431795"], ["updated_at", "2016-03-07 15:49:54.431795"]]  (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", "2016-03-07 15:49:54.433325"], ["updated_at", "2016-03-07 15:49:54.433325"]]  (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.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 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-03-07 15:49:54.438980"], ["updated_at", "2016-03-07 15:49:54.438980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:54.442148"], ["updated_at", "2016-03-07 15:49:54.442148"]]  (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-03-07 15:49:54.443640"], ["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", "2016-03-07 15:49:54.448855"], ["updated_at", "2016-03-07 15:49:54.448855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:54.452059"], ["updated_at", "2016-03-07 15:49:54.452059"]]  (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-03-07 15:49:54.453608"], ["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.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 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", "2016-03-07 15:49:54.460116"], ["updated_at", "2016-03-07 15:49:54.460116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:49:54.463247"], ["updated_at", "2016-03-07 15:49:54.463247"]]  (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-03-07 15:49:54.464676"], ["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", "2016-03-07 15:49:54.467837"], ["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", "2016-03-07 15:49:54.476032"], ["updated_at", "2016-03-07 15:49:54.476032"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:54.479169"], ["updated_at", "2016-03-07 15:49:54.479169"]]  (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-03-07 15:49:54.481398"], ["updated_at", "2016-03-07 15:49:54.481398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2016-03-07 15:49:54.482836"], ["updated_at", "2016-03-07 15:49:54.482836"]]  (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", "2016-03-07 15:49:54.486230"], ["updated_at", "2016-03-07 15:49:54.486230"]]  (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-03-07 15:49:54.487706"], ["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.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", "2016-03-07 15:49:54.496859"], ["updated_at", "2016-03-07 15:49:54.496859"]]  (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.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", "2016-03-07 15:49:54.500721"], ["updated_at", "2016-03-07 15:49:54.500721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:54.502805"], ["updated_at", "2016-03-07 15:49:54.502805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-07 15:49:54.504035"], ["updated_at", "2016-03-07 15:49:54.504035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:54.506631"], ["updated_at", "2016-03-07 15:49:54.506631"]]  (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-03-07 15:49:54.507986"], ["id", 1]]  (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 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-03-07 15:49:54.518285"], ["updated_at", "2016-03-07 15:49:54.518285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:54.522049"], ["updated_at", "2016-03-07 15:49:54.522049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2016-03-07 15:49:54.523908"], ["updated_at", "2016-03-07 15:49:54.523908"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:54.525016"], ["updated_at", "2016-03-07 15:49:54.525016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:54.527399"], ["updated_at", "2016-03-07 15:49:54.527399"]]  (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", "2016-03-07 15:49:54.528578"], ["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", "2016-03-07 15:49:54.535534"], ["updated_at", "2016-03-07 15:49:54.535534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:49:54.539287"], ["updated_at", "2016-03-07 15:49:54.539287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:54.541368"], ["updated_at", "2016-03-07 15:49:54.541368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2016-03-07 15:49:54.542561"], ["updated_at", "2016-03-07 15:49:54.542561"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:54.544959"], ["updated_at", "2016-03-07 15:49:54.544959"]]  (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-03-07 15:49:54.546288"], ["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 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-03-07 15:49:54.554057"], ["updated_at", "2016-03-07 15:49:54.554057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:54.557519"], ["updated_at", "2016-03-07 15:49:54.557519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-03-07 15:49:54.559539"], ["updated_at", "2016-03-07 15:49:54.559539"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:54.560744"], ["updated_at", "2016-03-07 15:49:54.560744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:54.564522"], ["updated_at", "2016-03-07 15:49:54.564522"]]  (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-03-07 15:49:54.566986"], ["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", "2016-03-07 15:49:54.575941"], ["id", 1]]  (0.0ms) 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.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-03-07 15:49:54.634244"], ["updated_at", "2016-03-07 15:49:54.634244"]]  (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", "2016-03-07 15:49:54.636821"], ["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", "2016-03-07 15:49:54.639998"], ["updated_at", "2016-03-07 15:49:54.639998"]]  (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-03-07 15:49:54.641798"], ["updated_at", "2016-03-07 15:49:54.641798"]]  (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", "2016-03-07 15:49:54.643435"], ["updated_at", "2016-03-07 15:49:54.643435"]]  (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", "2016-03-07 15:49:54.654020"], ["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", "2016-03-07 15:49:54.669998"], ["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.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", "2016-03-07 15:49:54.674662"], ["updated_at", "2016-03-07 15:49:54.674662"]]  (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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2016-03-07 15:49:54.678550"], ["id", 1]]  (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.5ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_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.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]]  (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", "2016-03-07 15:49:54.702470"], ["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", "2016-03-07 15:49:54.705528"], ["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.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.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-03-07 15:49:54.717543"], ["updated_at", "2016-03-07 15:49:54.717543"]]  (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-03-07 15:49:54.720221"], ["updated_at", "2016-03-07 15:49:54.720221"]]  (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", "2016-03-07 15:49:54.721841"], ["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.4ms) 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-03-07 15:49:54.733258"], ["updated_at", "2016-03-07 15:49:54.733258"]]  (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", "2016-03-07 15:49:54.736861"], ["updated_at", "2016-03-07 15:49:54.736861"]]  (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 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-03-07 15:49:54.743006"], ["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-03-07 15:49:54.744249"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Section Load (0.2ms) 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-03-07 15:49:54.752928"], ["updated_at", "2016-03-07 15:49:54.752928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:49:54.756095"], ["updated_at", "2016-03-07 15:49:54.756095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:54.758135"], ["updated_at", "2016-03-07 15:49:54.758135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-03-07 15:49:54.759310"], ["updated_at", "2016-03-07 15:49:54.759310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:54.762177"], ["updated_at", "2016-03-07 15:49:54.762177"]]  (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-03-07 15:49:54.763671"], ["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-03-07 15:49:54.765926"], ["updated_at", "2016-03-07 15:49:54.765926"]]  (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.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 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", "2016-03-07 15:49:54.773517"], ["updated_at", "2016-03-07 15:49:54.773517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:54.776428"], ["updated_at", "2016-03-07 15:49:54.776428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:54.778140"], ["updated_at", "2016-03-07 15:49:54.778140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-07 15:49:54.779335"], ["updated_at", "2016-03-07 15:49:54.779335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:54.781645"], ["updated_at", "2016-03-07 15:49:54.781645"]]  (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-03-07 15:49:54.783093"], ["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.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-03-07 15:49:54.785635"], ["updated_at", "2016-03-07 15:49:54.785635"]]  (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", "2016-03-07 15:49:54.788793"], ["updated_at", "2016-03-07 15:49:54.788793"]]  (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-03-07 15:49:54.790884"], ["updated_at", "2016-03-07 15:49:54.790884"]]  (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.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-03-07 15:49:54.800853"], ["updated_at", "2016-03-07 15:49:54.800853"]]  (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 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", "2016-03-07 15:49:54.863442"], ["updated_at", "2016-03-07 15:49:54.863442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:54.865341"], ["updated_at", "2016-03-07 15:49:54.865341"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-07 15:49:54.866558"], ["updated_at", "2016-03-07 15:49:54.866558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:54.869085"], ["updated_at", "2016-03-07 15:49:54.869085"]]  (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-03-07 15:49:54.870753"], ["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-03-07 15:49:54.873036"], ["updated_at", "2016-03-07 15:49:54.873036"]]  (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-03-07 15:49:54.875076"], ["updated_at", "2016-03-07 15:49:54.875076"]]  (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-03-07 15:49:54.876543"], ["updated_at", "2016-03-07 15:49:54.876543"]]  (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", "2016-03-07 15:49:54.878115"], ["updated_at", "2016-03-07 15:49:54.878115"]]  (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.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.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.5ms) 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 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", "2016-03-07 15:49:54.899399"], ["updated_at", "2016-03-07 15:49:54.899399"]]  (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 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.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-03-07 15:49:54.903679"], ["updated_at", "2016-03-07 15:49:54.903679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-07 15:49:54.906364"], ["updated_at", "2016-03-07 15:49:54.906364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:54.908030"], ["updated_at", "2016-03-07 15:49:54.908030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:54.911068"], ["updated_at", "2016-03-07 15:49:54.911068"]]  (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-03-07 15:49:54.912619"], ["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.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-03-07 15:49:54.919388"], ["updated_at", "2016-03-07 15:49:54.919388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (0.6ms) 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", "2016-03-07 15:49:54.928119"], ["updated_at", "2016-03-07 15:49:54.928119"]]  (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.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-03-07 15:49:54.931319"], ["updated_at", "2016-03-07 15:49:54.931319"]]  (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", "40"], ["created_at", "2016-03-07 15:49:54.933296"], ["updated_at", "2016-03-07 15:49:54.933296"]]  (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", "35"], ["created_at", "2016-03-07 15:49:54.935554"], ["updated_at", "2016-03-07 15:49:54.935554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:54.938809"], ["updated_at", "2016-03-07 15:49:54.938809"]]  (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-03-07 15:49:54.940682"], ["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-03-07 15:49:54.943493"], ["updated_at", "2016-03-07 15:49:54.943493"]]  (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.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.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", "2016-03-07 15:49:54.962478"], ["updated_at", "2016-03-07 15:49:54.962478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:54.965497"], ["updated_at", "2016-03-07 15:49:54.965497"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-07 15:49:54.967316"], ["updated_at", "2016-03-07 15:49:54.967316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:54.968514"], ["updated_at", "2016-03-07 15:49:54.968514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:54.971190"], ["updated_at", "2016-03-07 15:49:54.971190"]]  (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-03-07 15:49:54.972565"], ["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", "2016-03-07 15:49:54.975607"], ["updated_at", "2016-03-07 15:49:54.975607"]]  (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.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Submission Load (0.2ms) 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:54.984537"], ["updated_at", "2016-03-07 15:49:54.984537"]]  (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.1ms) 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", "2016-03-07 15:49:54.988495"], ["updated_at", "2016-03-07 15:49:54.988495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2016-03-07 15:49:54.990626"], ["updated_at", "2016-03-07 15:49:54.990626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:54.991894"], ["updated_at", "2016-03-07 15:49:54.991894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:54.994551"], ["updated_at", "2016-03-07 15:49:54.994551"]]  (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-03-07 15:49:54.995985"], ["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-03-07 15:49:54.998431"], ["updated_at", "2016-03-07 15:49:54.998431"]]  (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", "2016-03-07 15:49:55.001764"], ["updated_at", "2016-03-07 15:49:55.001764"]]  (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-03-07 15:49:55.003901"], ["updated_at", "2016-03-07 15:49:55.003901"]]  (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-03-07 15:49:55.006091"], ["updated_at", "2016-03-07 15:49:55.006091"]]  (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.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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.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.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.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.1ms) 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", "2016-03-07 15:49:55.037260"], ["updated_at", "2016-03-07 15:49:55.037260"]]  (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", "2016-03-07 15:49:55.040425"], ["updated_at", "2016-03-07 15:49:55.040425"]]  (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", "2016-03-07 15:49:55.043296"], ["updated_at", "2016-03-07 15:49:55.043296"]]  (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", "2016-03-07 15:49:55.046160"], ["updated_at", "2016-03-07 15:49:55.046160"]]  (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.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", "2016-03-07 15:49:55.053915"], ["updated_at", "2016-03-07 15:49:55.053915"]]  (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-03-07 15:49:55.115445"], ["updated_at", "2016-03-07 15:49:55.115445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-03-07 15:49:55.117295"], ["updated_at", "2016-03-07 15:49:55.117295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:55.118401"], ["updated_at", "2016-03-07 15:49:55.118401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.121207"], ["updated_at", "2016-03-07 15:49:55.121207"]]  (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-03-07 15:49:55.122869"], ["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-03-07 15:49:55.125119"], ["updated_at", "2016-03-07 15:49:55.125119"]]  (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-03-07 15:49:55.128524"], ["updated_at", "2016-03-07 15:49:55.128524"]]  (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-03-07 15:49:55.130689"], ["updated_at", "2016-03-07 15:49:55.130689"]]  (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"]]  (1.0ms) rollback transaction  (0.0ms) 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.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.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 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:55.139688"], ["updated_at", "2016-03-07 15:49:55.139688"]]  (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.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 114"], ["key", "Key 114"], ["secret", "Account 114"], ["canvas_account_id", "113"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:55.143258"], ["updated_at", "2016-03-07 15:49:55.143258"]]  (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", "44"], ["created_at", "2016-03-07 15:49:55.145819"], ["updated_at", "2016-03-07 15:49:55.145819"]]  (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", "39"], ["created_at", "2016-03-07 15:49:55.147460"], ["updated_at", "2016-03-07 15:49:55.147460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.150629"], ["updated_at", "2016-03-07 15:49:55.150629"]]  (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-03-07 15:49:55.152383"], ["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-03-07 15:49:55.154809"], ["updated_at", "2016-03-07 15:49:55.154809"]]  (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-03-07 15:49:55.157441"], ["updated_at", "2016-03-07 15:49:55.157441"]]  (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-03-07 15:49:55.158994"], ["updated_at", "2016-03-07 15:49:55.158994"]]  (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-03-07 15:49:55.160635"], ["updated_at", "2016-03-07 15:49:55.160635"]]  (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::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-03-07 15:49:55.177508"], ["updated_at", "2016-03-07 15:49:55.177508"]]  (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", "2016-03-07 15:49:55.179748"], ["updated_at", "2016-03-07 15:49:55.179748"]]  (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.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", "2016-03-07 15:49:55.189729"], ["updated_at", "2016-03-07 15:49:55.189729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:55.193069"], ["updated_at", "2016-03-07 15:49:55.193069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:55.195086"], ["updated_at", "2016-03-07 15:49:55.195086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-03-07 15:49:55.196286"], ["updated_at", "2016-03-07 15:49:55.196286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.198778"], ["updated_at", "2016-03-07 15:49:55.198778"]]  (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-03-07 15:49:55.200230"], ["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-03-07 15:49:55.204018"], ["updated_at", "2016-03-07 15:49:55.204018"]]  (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-03-07 15:49:55.206500"], ["updated_at", "2016-03-07 15:49:55.206500"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.7ms) 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", "2016-03-07 15:49:55.214133"], ["updated_at", "2016-03-07 15:49:55.214133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:55.217219"], ["updated_at", "2016-03-07 15:49:55.217219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:55.219112"], ["updated_at", "2016-03-07 15:49:55.219112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-07 15:49:55.220630"], ["updated_at", "2016-03-07 15:49:55.220630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.223482"], ["updated_at", "2016-03-07 15:49:55.223482"]]  (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-03-07 15:49:55.225381"], ["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-03-07 15:49:55.228143"], ["updated_at", "2016-03-07 15:49:55.228143"]]  (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-03-07 15:49:55.230663"], ["updated_at", "2016-03-07 15:49:55.230663"]]  (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-03-07 15:49:55.232563"], ["updated_at", "2016-03-07 15:49:55.232563"]]  (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", "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-03-07 15:49:55.235310"], ["updated_at", "2016-03-07 15:49:55.235310"]]  (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-03-07 15:49:55.251867"], ["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.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["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"."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.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.1ms) 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 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", "2016-03-07 15:49:55.271042"], ["updated_at", "2016-03-07 15:49:55.271042"]]  (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 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.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 120"], ["key", "Key 120"], ["secret", "Account 120"], ["canvas_account_id", "119"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:55.276274"], ["updated_at", "2016-03-07 15:49:55.276274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-07 15:49:55.278743"], ["updated_at", "2016-03-07 15:49:55.278743"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:55.280272"], ["updated_at", "2016-03-07 15:49:55.280272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.283494"], ["updated_at", "2016-03-07 15:49:55.283494"]]  (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-03-07 15:49:55.285508"], ["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.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-03-07 15:49:55.289885"], ["updated_at", "2016-03-07 15:49:55.289885"]]  (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-03-07 15:49:55.292966"], ["updated_at", "2016-03-07 15:49:55.292966"]]  (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-03-07 15:49:55.295091"], ["updated_at", "2016-03-07 15:49:55.295091"]]  (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-03-07 15:49:55.296936"], ["updated_at", "2016-03-07 15:49:55.296936"]]  (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.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.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.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-03-07 15:49:55.315830"], ["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.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  (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.3ms) 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.1ms) 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", "2016-03-07 15:49:55.396702"], ["updated_at", "2016-03-07 15:49:55.396702"]]  (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.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 122"], ["key", "Key 122"], ["secret", "Account 122"], ["canvas_account_id", "121"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:55.399737"], ["updated_at", "2016-03-07 15:49:55.399737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-07 15:49:55.401748"], ["updated_at", "2016-03-07 15:49:55.401748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:55.402855"], ["updated_at", "2016-03-07 15:49:55.402855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.405451"], ["updated_at", "2016-03-07 15:49:55.405451"]]  (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-03-07 15:49:55.406764"], ["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-03-07 15:49:55.408811"], ["updated_at", "2016-03-07 15:49:55.408811"]]  (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-03-07 15:49:55.410800"], ["updated_at", "2016-03-07 15:49:55.410800"]]  (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 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-03-07 15:49:55.413353"], ["updated_at", "2016-03-07 15:49:55.413353"]]  (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", "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-03-07 15:49:55.416262"], ["updated_at", "2016-03-07 15:49:55.416262"]]  (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.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:49:55.432560"], ["id", 1]]  (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.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.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.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", "2016-03-07 15:49:55.450281"], ["updated_at", "2016-03-07 15:49:55.450281"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:55.453454"], ["updated_at", "2016-03-07 15:49:55.453454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:55.455501"], ["updated_at", "2016-03-07 15:49:55.455501"]]  (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", "44"], ["created_at", "2016-03-07 15:49:55.457051"], ["updated_at", "2016-03-07 15:49:55.457051"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.460710"], ["updated_at", "2016-03-07 15:49:55.460710"]]  (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-03-07 15:49:55.462461"], ["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-03-07 15:49:55.464996"], ["updated_at", "2016-03-07 15:49:55.464996"]]  (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-03-07 15:49:55.467330"], ["updated_at", "2016-03-07 15:49:55.467330"]]  (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-03-07 15:49:55.468916"], ["updated_at", "2016-03-07 15:49:55.468916"]]  (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", "2016-03-07 15:49:55.470506"], ["updated_at", "2016-03-07 15:49:55.470506"]]  (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", "2016-03-07 15:49:55.485312"], ["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-03-07 15:49:55.491079"], ["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.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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:55.500653"], ["updated_at", "2016-03-07 15:49:55.500653"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:55.503612"], ["updated_at", "2016-03-07 15:49:55.503612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-03-07 15:49:55.505596"], ["updated_at", "2016-03-07 15:49:55.505596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:55.506796"], ["updated_at", "2016-03-07 15:49:55.506796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.509321"], ["updated_at", "2016-03-07 15:49:55.509321"]]  (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-03-07 15:49:55.510697"], ["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.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:49:55.519174"], ["updated_at", "2016-03-07 15:49:55.519174"]]  (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.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", "2016-03-07 15:49:55.523410"], ["updated_at", "2016-03-07 15:49:55.523410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:55.525800"], ["updated_at", "2016-03-07 15:49:55.525800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2016-03-07 15:49:55.527302"], ["updated_at", "2016-03-07 15:49:55.527302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.530617"], ["updated_at", "2016-03-07 15:49:55.530617"]]  (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-03-07 15:49:55.532336"], ["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 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-03-07 15:49:55.541663"], ["updated_at", "2016-03-07 15:49:55.541663"]]  (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.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 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:49:55.545421"], ["updated_at", "2016-03-07 15:49:55.545421"]]  (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", "52"], ["created_at", "2016-03-07 15:49:55.548852"], ["updated_at", "2016-03-07 15:49:55.548852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:55.550489"], ["updated_at", "2016-03-07 15:49:55.550489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.553765"], ["updated_at", "2016-03-07 15:49:55.553765"]]  (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-03-07 15:49:55.555452"], ["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", "2016-03-07 15:49:55.563602"], ["updated_at", "2016-03-07 15:49:55.563602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:55.566760"], ["updated_at", "2016-03-07 15:49:55.566760"]]  (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", "53"], ["created_at", "2016-03-07 15:49:55.568894"], ["updated_at", "2016-03-07 15:49:55.568894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-07 15:49:55.570118"], ["updated_at", "2016-03-07 15:49:55.570118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.572771"], ["updated_at", "2016-03-07 15:49:55.572771"]]  (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-03-07 15:49:55.574369"], ["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.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-03-07 15:49:55.582280"], ["updated_at", "2016-03-07 15:49:55.582280"]]  (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.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", "2016-03-07 15:49:55.586466"], ["updated_at", "2016-03-07 15:49:55.586466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2016-03-07 15:49:55.588510"], ["updated_at", "2016-03-07 15:49:55.588510"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:55.589709"], ["updated_at", "2016-03-07 15:49:55.589709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.592184"], ["updated_at", "2016-03-07 15:49:55.592184"]]  (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-03-07 15:49:55.593562"], ["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 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", "2016-03-07 15:49:55.601274"], ["updated_at", "2016-03-07 15:49:55.601274"]]  (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", "2016-03-07 15:49:55.664547"], ["updated_at", "2016-03-07 15:49:55.664547"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:55.666419"], ["updated_at", "2016-03-07 15:49:55.666419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-03-07 15:49:55.667628"], ["updated_at", "2016-03-07 15:49:55.667628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.670179"], ["updated_at", "2016-03-07 15:49:55.670179"]]  (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-03-07 15:49:55.671507"], ["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", "2016-03-07 15:49:55.679228"], ["updated_at", "2016-03-07 15:49:55.679228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:49:55.682082"], ["updated_at", "2016-03-07 15:49:55.682082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-07 15:49:55.683713"], ["updated_at", "2016-03-07 15:49:55.683713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:49:55.684910"], ["updated_at", "2016-03-07 15:49:55.684910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.687260"], ["updated_at", "2016-03-07 15:49:55.687260"]]  (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-03-07 15:49:55.688637"], ["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", "2016-03-07 15:49:55.696635"], ["updated_at", "2016-03-07 15:49:55.696635"]]  (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", "2016-03-07 15:49:55.700100"], ["updated_at", "2016-03-07 15:49:55.700100"]]  (0.1ms) 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", "57"], ["created_at", "2016-03-07 15:49:55.702904"], ["updated_at", "2016-03-07 15:49:55.702904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2016-03-07 15:49:55.704918"], ["updated_at", "2016-03-07 15:49:55.704918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.708487"], ["updated_at", "2016-03-07 15:49:55.708487"]]  (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-03-07 15:49:55.710367"], ["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 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.2ms) INSERT INTO "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-03-07 15:49:55.720924"], ["updated_at", "2016-03-07 15:49:55.720924"]]  (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.1ms) 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", "2016-03-07 15:49:55.724919"], ["updated_at", "2016-03-07 15:49:55.724919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:49:55.726956"], ["updated_at", "2016-03-07 15:49:55.726956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-03-07 15:49:55.728168"], ["updated_at", "2016-03-07 15:49:55.728168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:49:55.730644"], ["updated_at", "2016-03-07 15:49:55.730644"]]  (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-03-07 15:49:55.732051"], ["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", "2016-03-07 15:49:55.734940"], ["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.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 35749ms (Views: 0.2ms | 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 83215ms (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 1211ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) 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.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 1"], ["key", "Key 1"], ["secret", "Account 1"], ["canvas_account_id", "1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: foo.com\n"], ["created_at", "2016-03-07 15:52:10.770490"], ["updated_at", "2016-03-07 15:52:10.770490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:52:10.835659"], ["updated_at", "2016-03-07 15:52:10.835659"]]  (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", "2016-03-07 16:52:10.859990"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:52:10.861499"], ["updated_at", "2016-03-07 15:52:10.861499"]]  (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 33ms (Views: 10.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.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.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.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", "2016-03-07 15:52:10.896734"], ["updated_at", "2016-03-07 15:52:10.896734"]]  (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.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", "2016-03-07 15:52:10.906992"], ["updated_at", "2016-03-07 15:52:10.906992"]]  (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", "2016-03-07 15:52:10.909861"], ["updated_at", "2016-03-07 15:52:10.909861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:52:10.912903"], ["updated_at", "2016-03-07 15:52:10.912903"]]  (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 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", "2016-03-07 15:52:10.973882"], ["updated_at", "2016-03-07 15:52:10.973882"]]  (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.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-03-07 15:52:10.977723"], ["updated_at", "2016-03-07 15:52:10.977723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:10.979796"], ["updated_at", "2016-03-07 15:52:10.979796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-03-07 15:52:10.981083"], ["updated_at", "2016-03-07 15:52:10.981083"]]  (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", "2016-03-07 15:52:10.986135"], ["updated_at", "2016-03-07 15:52:10.986135"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:10.988998"], ["updated_at", "2016-03-07 15:52:10.988998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:10.990698"], ["updated_at", "2016-03-07 15:52:10.990698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-07 15:52:10.991863"], ["updated_at", "2016-03-07 15:52:10.991863"]]  (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 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", "2016-03-07 15:52:11.008276"], ["updated_at", "2016-03-07 15:52:11.008276"]]  (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.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", "2016-03-07 15:52:11.011931"], ["updated_at", "2016-03-07 15:52:11.011931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:11.013930"], ["updated_at", "2016-03-07 15:52:11.013930"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-03-07 15:52:11.015203"], ["updated_at", "2016-03-07 15:52:11.015203"]]  (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.2ms) INSERT INTO "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-03-07 15:52:11.022043"], ["updated_at", "2016-03-07 15:52:11.022043"]]  (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.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", "2016-03-07 15:52:11.026902"], ["updated_at", "2016-03-07 15:52:11.026902"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:11.028960"], ["updated_at", "2016-03-07 15:52:11.028960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-03-07 15:52:11.030236"], ["updated_at", "2016-03-07 15:52:11.030236"]]  (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", "2016-03-07 15:52:11.035178"], ["updated_at", "2016-03-07 15:52:11.035178"]]  (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", "2016-03-07 15:52:11.037852"], ["updated_at", "2016-03-07 15:52:11.037852"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:11.039507"], ["updated_at", "2016-03-07 15:52:11.039507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-03-07 15:52:11.040551"], ["updated_at", "2016-03-07 15:52:11.040551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2016-03-07 15:52:11.042145"], ["updated_at", "2016-03-07 15:52:11.042145"]]  (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", "2016-03-07 15:52:11.047410"], ["updated_at", "2016-03-07 15:52:11.047410"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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", "2016-03-07 15:52:11.053012"], ["updated_at", "2016-03-07 15:52:11.053012"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.056557"], ["updated_at", "2016-03-07 15:52:11.056557"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:11.058553"], ["updated_at", "2016-03-07 15:52:11.058553"]]  (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", "7"], ["created_at", "2016-03-07 15:52:11.059750"], ["updated_at", "2016-03-07 15:52:11.059750"]]  (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", "2016-03-07 15:52:11.070354"], ["updated_at", "2016-03-07 15:52:11.070354"]]  (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.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  (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", "2016-03-08 15:52:11.086211"], ["created_at", "2016-03-07 15:52:11.087599"], ["updated_at", "2016-03-07 15:52:11.087599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:52:11.097650"], ["updated_at", "2016-03-07 15:52:11.097650"]]  (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", "2016-03-07 15:52:11.099808"], ["updated_at", "2016-03-07 15:52:11.099808"]]  (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-03-07 15:52:11.101275"], ["updated_at", "2016-03-07 15:52:11.101275"]]  (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.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.1ms) 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.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' 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 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:11.112776"], ["updated_at", "2016-03-07 15:52:11.112776"]]  (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-03-07 15:52:11.116880"], ["updated_at", "2016-03-07 15:52:11.116880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-07 15:52:11.118948"], ["updated_at", "2016-03-07 15:52:11.118948"]]  (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", "2016-03-07 15:52:11.124748"], ["updated_at", "2016-03-07 15:52:11.124748"]]  (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-03-07 15:52:11.128907"], ["updated_at", "2016-03-07 15:52:11.128907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:11.131302"], ["updated_at", "2016-03-07 15:52:11.131302"]]  (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 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:11.137877"], ["updated_at", "2016-03-07 15:52:11.137877"]]  (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", "2016-03-07 15:52:11.142289"], ["updated_at", "2016-03-07 15:52:11.142289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2016-03-07 15:52:11.144360"], ["updated_at", "2016-03-07 15:52:11.144360"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:52:11.145490"], ["updated_at", "2016-03-07 15:52:11.145490"]]  (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", "2016-03-07 15:52:11.148840"], ["updated_at", "2016-03-07 15:52:11.148840"]]  (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", "11"], ["created_at", "2016-03-07 15:52:11.151038"], ["updated_at", "2016-03-07 15:52:11.151038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:52:11.152242"], ["updated_at", "2016-03-07 15:52:11.152242"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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", "2016-03-07 15:52:11.157320"], ["updated_at", "2016-03-07 15:52:11.157320"]]  (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-03-07 15:52:11.159525"], ["updated_at", "2016-03-07 15:52:11.159525"]]  (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", "2016-03-07 15:52:11.163650"], ["updated_at", "2016-03-07 15:52:11.163650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:52:11.165564"], ["updated_at", "2016-03-07 15:52:11.165564"]]  (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-03-07 15:52:11.168280"], ["updated_at", "2016-03-07 15:52:11.168280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:52:11.170417"], ["updated_at", "2016-03-07 15:52:11.170417"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.1ms) 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 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.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 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:11.175292"], ["updated_at", "2016-03-07 15:52:11.175292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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 27"], ["key", "Key 27"], ["secret", "Account 27"], ["canvas_account_id", "27"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:11.178468"], ["updated_at", "2016-03-07 15:52:11.178468"]]  (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", "13"], ["created_at", "2016-03-07 15:52:11.180473"], ["updated_at", "2016-03-07 15:52:11.180473"]]  (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.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", "2016-03-07 15:52:11.245724"], ["updated_at", "2016-03-07 15:52:11.245724"]]  (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", "2016-03-07 15:52:11.247862"], ["updated_at", "2016-03-07 15:52:11.247862"]]  (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.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", "2016-03-07 15:52:11.257798"], ["updated_at", "2016-03-07 15:52:11.257798"]]  (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", "2016-03-07 15:52:11.261680"], ["updated_at", "2016-03-07 15:52:11.261680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.263601"], ["updated_at", "2016-03-07 15:52:11.263601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.264983"], ["updated_at", "2016-03-07 15:52:11.264983"]]  (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-03-07 15:52:11.267078"], ["updated_at", "2016-03-07 15:52:11.267078"]]  (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 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", "2016-03-07 15:52:11.274295"], ["updated_at", "2016-03-07 15:52:11.274295"]]  (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", "2016-03-07 15:52:11.276844"], ["updated_at", "2016-03-07 15:52:11.276844"]]  (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", "2016-03-07 15:52:11.279849"], ["updated_at", "2016-03-07 15:52:11.279849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.283076"], ["updated_at", "2016-03-07 15:52:11.283076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.284944"], ["updated_at", "2016-03-07 15:52:11.284944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:52:11.286479"], ["updated_at", "2016-03-07 15:52:11.286479"]]  (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-03-07 15:52:11.287970"], ["updated_at", "2016-03-07 15:52:11.287970"]]  (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", "2016-03-07 15:52:11.294465"], ["updated_at", "2016-03-07 15:52:11.294465"]]  (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", "2016-03-07 15:52:11.296599"], ["updated_at", "2016-03-07 15:52:11.296599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.299257"], ["updated_at", "2016-03-07 15:52:11.299257"]]  (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", "2016-03-07 15:52:11.302292"], ["updated_at", "2016-03-07 15:52:11.302292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.303785"], ["updated_at", "2016-03-07 15:52:11.303785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.304854"], ["updated_at", "2016-03-07 15:52:11.304854"]]  (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-03-07 15:52:11.306012"], ["updated_at", "2016-03-07 15:52:11.306012"]]  (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", "2016-03-07 15:52:11.311061"], ["updated_at", "2016-03-07 15:52:11.311061"]]  (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", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2016-03-07 15:52:11.313218"], ["updated_at", "2016-03-07 15:52:11.313218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:11.315828"], ["updated_at", "2016-03-07 15:52:11.315828"]]  (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 (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", "2016-03-07 15:52:11.320155"], ["updated_at", "2016-03-07 15:52:11.320155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.322845"], ["updated_at", "2016-03-07 15:52:11.322845"]]  (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", "13"], ["created_at", "2016-03-07 15:52:11.324621"], ["updated_at", "2016-03-07 15:52:11.324621"]]  (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-03-07 15:52:11.326177"], ["updated_at", "2016-03-07 15:52:11.326177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-03-07 15:52:11.328218"], ["updated_at", "2016-03-07 15:52:11.328218"]]  (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-03-07 15:52:11.331560"], ["updated_at", "2016-03-07 15:52:11.331560"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:52:11.337809"], ["updated_at", "2016-03-07 15:52:11.337809"]]  (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-03-07 15:52:11.340046"], ["updated_at", "2016-03-07 15:52:11.340046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:11.342719"], ["updated_at", "2016-03-07 15:52:11.342719"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.345502"], ["updated_at", "2016-03-07 15:52:11.345502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.347016"], ["updated_at", "2016-03-07 15:52:11.347016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.348249"], ["updated_at", "2016-03-07 15:52:11.348249"]]  (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-03-07 15:52:11.349379"], ["updated_at", "2016-03-07 15:52:11.349379"]]  (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-03-07 15:52:11.351235"], ["updated_at", "2016-03-07 15:52:11.351235"]]  (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-03-07 15:52:11.352899"], ["updated_at", "2016-03-07 15:52:11.352899"]]  (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 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.2ms) INSERT INTO "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-03-07 15:52:11.359796"], ["updated_at", "2016-03-07 15:52:11.359796"]]  (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", "2016-03-07 15:52:11.362419"], ["updated_at", "2016-03-07 15:52:11.362419"]]  (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-03-07 15:52:11.365615"], ["updated_at", "2016-03-07 15:52:11.365615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.368416"], ["updated_at", "2016-03-07 15:52:11.368416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.370184"], ["updated_at", "2016-03-07 15:52:11.370184"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:52:11.371551"], ["updated_at", "2016-03-07 15:52:11.371551"]]  (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-03-07 15:52:11.372998"], ["updated_at", "2016-03-07 15:52:11.372998"]]  (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.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.1ms) 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.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 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", "2016-03-07 15:52:11.388358"], ["updated_at", "2016-03-07 15:52:11.388358"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.391314"], ["updated_at", "2016-03-07 15:52:11.391314"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-07 15:52:11.393194"], ["updated_at", "2016-03-07 15:52:11.393194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.394452"], ["updated_at", "2016-03-07 15:52:11.394452"]]  (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", "2016-03-07 15:52:11.400643"], ["updated_at", "2016-03-07 15:52:11.400643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.403918"], ["updated_at", "2016-03-07 15:52:11.403918"]]  (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", "21"], ["created_at", "2016-03-07 15:52:11.405765"], ["updated_at", "2016-03-07 15:52:11.405765"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.406969"], ["updated_at", "2016-03-07 15:52:11.406969"]]  (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.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-03-07 15:52:11.411567"], ["updated_at", "2016-03-07 15:52:11.411567"]]  (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 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-03-07 15:52:11.414818"], ["updated_at", "2016-03-07 15:52:11.414818"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2016-03-07 15:52:11.417076"], ["updated_at", "2016-03-07 15:52:11.417076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.418441"], ["updated_at", "2016-03-07 15:52:11.418441"]]  (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-03-07 15:52:11.420173"], ["updated_at", "2016-03-07 15:52:11.420173"]]  (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-03-07 15:52:11.421832"], ["updated_at", "2016-03-07 15:52:11.421832"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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 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-03-07 15:52:11.426847"], ["updated_at", "2016-03-07 15:52:11.426847"]]  (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.1ms) 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", "2016-03-07 15:52:11.430567"], ["updated_at", "2016-03-07 15:52:11.430567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-03-07 15:52:11.432910"], ["updated_at", "2016-03-07 15:52:11.432910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.434312"], ["updated_at", "2016-03-07 15:52:11.434312"]]  (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.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", "2016-03-07 15:52:11.448105"], ["updated_at", "2016-03-07 15:52:11.448105"]]  (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-03-07 15:52:11.450864"], ["updated_at", "2016-03-07 15:52:11.450864"]]  (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-03-07 15:52:11.455146"], ["updated_at", "2016-03-07 15:52:11.455146"]]  (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.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", "2016-03-07 15:52:11.458243"], ["updated_at", "2016-03-07 15:52:11.458243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.459918"], ["updated_at", "2016-03-07 15:52:11.459918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.461237"], ["updated_at", "2016-03-07 15:52:11.461237"]]  (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", "2016-03-07 15:52:11.462502"], ["updated_at", "2016-03-07 15:52:11.462502"]]  (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 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-03-07 15:52:11.469791"], ["updated_at", "2016-03-07 15:52:11.469791"]]  (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-03-07 15:52:11.472475"], ["updated_at", "2016-03-07 15:52:11.472475"]]  (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.1ms) 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-03-07 15:52:11.475844"], ["updated_at", "2016-03-07 15:52:11.475844"]]  (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 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.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", "2016-03-07 15:52:11.534301"], ["updated_at", "2016-03-07 15:52:11.534301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.536309"], ["updated_at", "2016-03-07 15:52:11.536309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-07 15:52:11.537459"], ["updated_at", "2016-03-07 15:52:11.537459"]]  (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-03-07 15:52:11.538611"], ["updated_at", "2016-03-07 15:52:11.538611"]]  (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.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' 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 61"], ["key", "Key 61"], ["secret", "Account 61"], ["canvas_account_id", "60"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:11.544386"], ["updated_at", "2016-03-07 15:52:11.544386"]]  (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-03-07 15:52:11.547315"], ["updated_at", "2016-03-07 15:52:11.547315"]]  (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-03-07 15:52:11.550595"], ["updated_at", "2016-03-07 15:52:11.550595"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:11.553556"], ["updated_at", "2016-03-07 15:52:11.553556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.555082"], ["updated_at", "2016-03-07 15:52:11.555082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.556179"], ["updated_at", "2016-03-07 15:52:11.556179"]]  (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-03-07 15:52:11.557443"], ["updated_at", "2016-03-07 15:52:11.557443"]]  (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", "2016-03-07 15:52:11.562383"], ["updated_at", "2016-03-07 15:52:11.562383"]]  (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", "2016-03-07 15:52:11.564362"], ["updated_at", "2016-03-07 15:52:11.564362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:11.567026"], ["updated_at", "2016-03-07 15:52:11.567026"]]  (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 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", "2016-03-07 15:52:11.571355"], ["updated_at", "2016-03-07 15:52:11.571355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.573466"], ["updated_at", "2016-03-07 15:52:11.573466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:52:11.575023"], ["updated_at", "2016-03-07 15:52:11.575023"]]  (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-03-07 15:52:11.576462"], ["updated_at", "2016-03-07 15:52:11.576462"]]  (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-03-07 15:52:11.578483"], ["updated_at", "2016-03-07 15:52:11.578483"]]  (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", "2016-03-07 15:52:11.580535"], ["updated_at", "2016-03-07 15:52:11.580535"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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", "2016-03-07 15:52:11.586671"], ["updated_at", "2016-03-07 15:52:11.586671"]]  (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-03-07 15:52:11.588985"], ["updated_at", "2016-03-07 15:52:11.588985"]]  (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 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-03-07 15:52:11.591870"], ["updated_at", "2016-03-07 15:52:11.591870"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.594723"], ["updated_at", "2016-03-07 15:52:11.594723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.596282"], ["updated_at", "2016-03-07 15:52:11.596282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.597435"], ["updated_at", "2016-03-07 15:52:11.597435"]]  (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-03-07 15:52:11.598697"], ["updated_at", "2016-03-07 15:52:11.598697"]]  (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-03-07 15:52:11.600292"], ["updated_at", "2016-03-07 15:52:11.600292"]]  (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-03-07 15:52:11.601974"], ["updated_at", "2016-03-07 15:52:11.601974"]]  (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", "2016-03-07 15:52:11.606938"], ["updated_at", "2016-03-07 15:52:11.606938"]]  (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-03-07 15:52:11.608919"], ["updated_at", "2016-03-07 15:52:11.608919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:11.611552"], ["updated_at", "2016-03-07 15:52:11.611552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.614112"], ["updated_at", "2016-03-07 15:52:11.614112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:11.615759"], ["updated_at", "2016-03-07 15:52:11.615759"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:52:11.616915"], ["updated_at", "2016-03-07 15:52:11.616915"]]  (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-03-07 15:52:11.618187"], ["updated_at", "2016-03-07 15:52:11.618187"]]  (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.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.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-03-07 15:52:11.624631"], ["updated_at", "2016-03-07 15:52:11.624631"]]  (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", "2016-03-07 15:52:11.630304"], ["updated_at", "2016-03-07 15:52:11.630304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:52:11.633162"], ["updated_at", "2016-03-07 15:52:11.633162"]]  (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-03-07 15:52:11.635410"], ["updated_at", "2016-03-07 15:52:11.635410"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.642300"], ["updated_at", "2016-03-07 15:52:11.642300"]]  (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.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", "2016-03-07 15:52:11.649402"], ["updated_at", "2016-03-07 15:52:11.649402"]]  (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.1ms) 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-03-07 15:52:11.654987"], ["updated_at", "2016-03-07 15:52:11.654987"]]  (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", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:52:11.658323"], ["updated_at", "2016-03-07 15:52:11.658323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-03-07 15:52:11.661205"], ["updated_at", "2016-03-07 15:52:11.661205"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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-03-07 15:52:11.666014"], ["updated_at", "2016-03-07 15:52:11.666014"]]  (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", "2016-03-07 15:52:11.674386"], ["updated_at", "2016-03-07 15:52:11.674386"]]  (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", "2016-03-07 15:52:11.688548"], ["updated_at", "2016-03-07 15:52:11.688548"]]  (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-03-07 15:52:11.690485"], ["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", "2016-03-07 15:52:11.696910"], ["updated_at", "2016-03-07 15:52:11.696910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:11.700269"], ["updated_at", "2016-03-07 15:52:11.700269"]]  (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-03-07 15:52:11.701735"], ["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", "2016-03-07 15:52:11.706948"], ["updated_at", "2016-03-07 15:52:11.706948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:11.710729"], ["updated_at", "2016-03-07 15:52:11.710729"]]  (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-03-07 15:52:11.712251"], ["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-03-07 15:52:11.724698"], ["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", "2016-03-07 15:52:11.729073"], ["updated_at", "2016-03-07 15:52:11.729073"]]  (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-03-07 15:52:11.731090"], ["updated_at", "2016-03-07 15:52:11.731090"]]  (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", "2016-03-07 15:52:11.732712"], ["updated_at", "2016-03-07 15:52:11.732712"]]  (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", "2016-03-07 15:52:11.734899"], ["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-03-07 15:52:11.736024"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.0ms) 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.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", "2016-03-07 15:52:11.798089"], ["updated_at", "2016-03-07 15:52:11.798089"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:11.801422"], ["updated_at", "2016-03-07 15:52:11.801422"]]  (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-03-07 15:52:11.802842"], ["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", "2016-03-07 15:52:11.806361"], ["updated_at", "2016-03-07 15:52:11.806361"]]  (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", "2016-03-07 15:52:11.808475"], ["updated_at", "2016-03-07 15:52:11.808475"]]  (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.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 83' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:52:11.815096"], ["updated_at", "2016-03-07 15:52:11.815096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:11.819355"], ["updated_at", "2016-03-07 15:52:11.819355"]]  (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-03-07 15:52:11.821113"], ["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", "2016-03-07 15:52:11.823496"], ["updated_at", "2016-03-07 15:52:11.823496"]]  (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-03-07 15:52:11.825163"], ["updated_at", "2016-03-07 15:52:11.825163"]]  (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", "2016-03-07 15:52:11.826642"], ["updated_at", "2016-03-07 15:52:11.826642"]]  (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", "2016-03-07 15:52:11.832816"], ["updated_at", "2016-03-07 15:52:11.832816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:11.837028"], ["updated_at", "2016-03-07 15:52:11.837028"]]  (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-03-07 15:52:11.838818"], ["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 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", "2016-03-07 15:52:11.844068"], ["updated_at", "2016-03-07 15:52:11.844068"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:11.847608"], ["updated_at", "2016-03-07 15:52:11.847608"]]  (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-03-07 15:52:11.849798"], ["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.1ms) SAVEPOINT active_record_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 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", "2016-03-07 15:52:11.859122"], ["updated_at", "2016-03-07 15:52:11.859122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:11.862821"], ["updated_at", "2016-03-07 15:52:11.862821"]]  (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-03-07 15:52:11.864340"], ["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", "2016-03-07 15:52:11.866989"], ["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", "2016-03-07 15:52:11.874607"], ["updated_at", "2016-03-07 15:52:11.874607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.877799"], ["updated_at", "2016-03-07 15:52:11.877799"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:11.879591"], ["updated_at", "2016-03-07 15:52:11.879591"]]  (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", "26"], ["created_at", "2016-03-07 15:52:11.880866"], ["updated_at", "2016-03-07 15:52:11.880866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:11.883558"], ["updated_at", "2016-03-07 15:52:11.883558"]]  (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-03-07 15:52:11.884931"], ["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.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.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", "2016-03-07 15:52:11.892467"], ["updated_at", "2016-03-07 15:52:11.892467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.895786"], ["updated_at", "2016-03-07 15:52:11.895786"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:11.897673"], ["updated_at", "2016-03-07 15:52:11.897673"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-07 15:52:11.898838"], ["updated_at", "2016-03-07 15:52:11.898838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:11.901815"], ["updated_at", "2016-03-07 15:52:11.901815"]]  (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-03-07 15:52:11.903397"], ["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", "2016-03-07 15:52:11.910602"], ["updated_at", "2016-03-07 15:52:11.910602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:11.913888"], ["updated_at", "2016-03-07 15:52:11.913888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2016-03-07 15:52:11.915730"], ["updated_at", "2016-03-07 15:52:11.915730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.917262"], ["updated_at", "2016-03-07 15:52:11.917262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:11.919732"], ["updated_at", "2016-03-07 15:52:11.919732"]]  (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", "2016-03-07 15:52:11.921381"], ["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", "2016-03-07 15:52:11.929461"], ["updated_at", "2016-03-07 15:52:11.929461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:11.932702"], ["updated_at", "2016-03-07 15:52:11.932702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:11.934760"], ["updated_at", "2016-03-07 15:52:11.934760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2016-03-07 15:52:11.936129"], ["updated_at", "2016-03-07 15:52:11.936129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:11.939440"], ["updated_at", "2016-03-07 15:52:11.939440"]]  (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-03-07 15:52:11.941152"], ["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", "2016-03-07 15:52:11.948886"], ["updated_at", "2016-03-07 15:52:11.948886"]]  (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.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-03-07 15:52:11.952767"], ["updated_at", "2016-03-07 15:52:11.952767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-03-07 15:52:11.954927"], ["updated_at", "2016-03-07 15:52:11.954927"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:11.956235"], ["updated_at", "2016-03-07 15:52:11.956235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:11.958827"], ["updated_at", "2016-03-07 15:52:11.958827"]]  (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-03-07 15:52:11.960207"], ["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", "2016-03-07 15:52:11.967561"], ["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-03-07 15:52:11.971894"], ["updated_at", "2016-03-07 15:52:11.971894"]]  (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", "2016-03-07 15:52:11.974252"], ["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", "2016-03-07 15:52:11.977150"], ["updated_at", "2016-03-07 15:52:11.977150"]]  (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-03-07 15:52:11.978873"], ["updated_at", "2016-03-07 15:52:11.978873"]]  (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", "2016-03-07 15:52:11.980541"], ["updated_at", "2016-03-07 15:52:11.980541"]]  (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-03-07 15:52:11.989811"], ["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.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.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.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2016-03-07 15:52:12.007711"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (3.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.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", "2016-03-07 15:52:12.078360"], ["updated_at", "2016-03-07 15:52:12.078360"]]  (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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2016-03-07 15:52:12.082235"], ["id", 1]]  (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.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.2ms) 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]]  (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", 62.5], ["updated_at", "2016-03-07 15:52:12.105539"], ["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.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-03-07 15:52:12.109381"], ["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.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", "2016-03-07 15:52:12.125746"], ["updated_at", "2016-03-07 15:52:12.125746"]]  (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-03-07 15:52:12.129461"], ["updated_at", "2016-03-07 15:52:12.129461"]]  (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-03-07 15:52:12.131632"], ["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.7ms) 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", "2016-03-07 15:52:12.147686"], ["updated_at", "2016-03-07 15:52:12.147686"]]  (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.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.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"]]  (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-03-07 15:52:12.153222"], ["updated_at", "2016-03-07 15:52:12.153222"]]  (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 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-03-07 15:52:12.160849"], ["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-03-07 15:52:12.162215"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Section Load (0.2ms) 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.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", "2016-03-07 15:52:12.170642"], ["updated_at", "2016-03-07 15:52:12.170642"]]  (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.1ms) 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-03-07 15:52:12.174362"], ["updated_at", "2016-03-07 15:52:12.174362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:12.176867"], ["updated_at", "2016-03-07 15:52:12.176867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-03-07 15:52:12.178116"], ["updated_at", "2016-03-07 15:52:12.178116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.180586"], ["updated_at", "2016-03-07 15:52:12.180586"]]  (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-03-07 15:52:12.181866"], ["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-03-07 15:52:12.184098"], ["updated_at", "2016-03-07 15:52:12.184098"]]  (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]]  (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.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", "2016-03-07 15:52:12.192812"], ["updated_at", "2016-03-07 15:52:12.192812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:12.196559"], ["updated_at", "2016-03-07 15:52:12.196559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:12.198556"], ["updated_at", "2016-03-07 15:52:12.198556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-07 15:52:12.199948"], ["updated_at", "2016-03-07 15:52:12.199948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.203153"], ["updated_at", "2016-03-07 15:52:12.203153"]]  (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-03-07 15:52:12.204691"], ["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", "2016-03-07 15:52:12.207128"], ["updated_at", "2016-03-07 15:52:12.207128"]]  (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-03-07 15:52:12.209095"], ["updated_at", "2016-03-07 15:52:12.209095"]]  (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-03-07 15:52:12.210830"], ["updated_at", "2016-03-07 15:52:12.210830"]]  (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.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.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 101"], ["key", "Key 101"], ["secret", "Account 101"], ["canvas_account_id", "100"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:12.219959"], ["updated_at", "2016-03-07 15:52:12.219959"]]  (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 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.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", "2016-03-07 15:52:12.224243"], ["updated_at", "2016-03-07 15:52:12.224243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:12.226348"], ["updated_at", "2016-03-07 15:52:12.226348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-07 15:52:12.227633"], ["updated_at", "2016-03-07 15:52:12.227633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.230389"], ["updated_at", "2016-03-07 15:52:12.230389"]]  (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-03-07 15:52:12.232203"], ["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-03-07 15:52:12.235367"], ["updated_at", "2016-03-07 15:52:12.235367"]]  (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", "2016-03-07 15:52:12.238217"], ["updated_at", "2016-03-07 15:52:12.238217"]]  (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-03-07 15:52:12.240115"], ["updated_at", "2016-03-07 15:52:12.240115"]]  (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", "2016-03-07 15:52:12.241848"], ["updated_at", "2016-03-07 15:52:12.241848"]]  (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  (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 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", "2016-03-07 15:52:12.262261"], ["updated_at", "2016-03-07 15:52:12.262261"]]  (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 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.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-03-07 15:52:12.267020"], ["updated_at", "2016-03-07 15:52:12.267020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-07 15:52:12.269535"], ["updated_at", "2016-03-07 15:52:12.269535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:12.271164"], ["updated_at", "2016-03-07 15:52:12.271164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.274312"], ["updated_at", "2016-03-07 15:52:12.274312"]]  (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-03-07 15:52:12.275948"], ["id", 1]]  (0.1ms) 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", "2016-03-07 15:52:12.344744"], ["updated_at", "2016-03-07 15:52:12.344744"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (1.0ms) 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", "2016-03-07 15:52:12.356236"], ["updated_at", "2016-03-07 15:52:12.356236"]]  (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 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:52:12.360843"], ["updated_at", "2016-03-07 15:52:12.360843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:12.363912"], ["updated_at", "2016-03-07 15:52:12.363912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2016-03-07 15:52:12.365506"], ["updated_at", "2016-03-07 15:52:12.365506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.368603"], ["updated_at", "2016-03-07 15:52:12.368603"]]  (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-03-07 15:52:12.370342"], ["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-03-07 15:52:12.372800"], ["updated_at", "2016-03-07 15:52:12.372800"]]  (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.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.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-03-07 15:52:12.391041"], ["updated_at", "2016-03-07 15:52:12.391041"]]  (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.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", "2016-03-07 15:52:12.395999"], ["updated_at", "2016-03-07 15:52:12.395999"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-07 15:52:12.398311"], ["updated_at", "2016-03-07 15:52:12.398311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:12.399866"], ["updated_at", "2016-03-07 15:52:12.399866"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.402577"], ["updated_at", "2016-03-07 15:52:12.402577"]]  (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-03-07 15:52:12.404538"], ["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.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", "2016-03-07 15:52:12.407866"], ["updated_at", "2016-03-07 15:52:12.407866"]]  (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.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 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", "2016-03-07 15:52:12.418771"], ["updated_at", "2016-03-07 15:52:12.418771"]]  (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.1ms) 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", "2016-03-07 15:52:12.424199"], ["updated_at", "2016-03-07 15:52:12.424199"]]  (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", "42"], ["created_at", "2016-03-07 15:52:12.427310"], ["updated_at", "2016-03-07 15:52:12.427310"]]  (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", "37"], ["created_at", "2016-03-07 15:52:12.429616"], ["updated_at", "2016-03-07 15:52:12.429616"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.433262"], ["updated_at", "2016-03-07 15:52:12.433262"]]  (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-03-07 15:52:12.435828"], ["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-03-07 15:52:12.439164"], ["updated_at", "2016-03-07 15:52:12.439164"]]  (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-03-07 15:52:12.442226"], ["updated_at", "2016-03-07 15:52:12.442226"]]  (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-03-07 15:52:12.444314"], ["updated_at", "2016-03-07 15:52:12.444314"]]  (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-03-07 15:52:12.446245"], ["updated_at", "2016-03-07 15:52:12.446245"]]  (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::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", "2016-03-07 15:52:12.473726"], ["updated_at", "2016-03-07 15:52:12.473726"]]  (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-03-07 15:52:12.477048"], ["updated_at", "2016-03-07 15:52:12.477048"]]  (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", "2016-03-07 15:52:12.479903"], ["updated_at", "2016-03-07 15:52:12.479903"]]  (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", "2016-03-07 15:52:12.482801"], ["updated_at", "2016-03-07 15:52:12.482801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (1.1ms) 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-03-07 15:52:12.490742"], ["updated_at", "2016-03-07 15:52:12.490742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:12.493892"], ["updated_at", "2016-03-07 15:52:12.493892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-03-07 15:52:12.495881"], ["updated_at", "2016-03-07 15:52:12.495881"]]  (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", "38"], ["created_at", "2016-03-07 15:52:12.497177"], ["updated_at", "2016-03-07 15:52:12.497177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.499637"], ["updated_at", "2016-03-07 15:52:12.499637"]]  (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-03-07 15:52:12.500998"], ["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-03-07 15:52:12.503204"], ["updated_at", "2016-03-07 15:52:12.503204"]]  (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-03-07 15:52:12.506575"], ["updated_at", "2016-03-07 15:52:12.506575"]]  (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-03-07 15:52:12.509091"], ["updated_at", "2016-03-07 15:52:12.509091"]]  (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.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", "2016-03-07 15:52:12.517355"], ["updated_at", "2016-03-07 15:52:12.517355"]]  (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", "2016-03-07 15:52:12.520886"], ["updated_at", "2016-03-07 15:52:12.520886"]]  (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", "2016-03-07 15:52:12.523512"], ["updated_at", "2016-03-07 15:52:12.523512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:12.525219"], ["updated_at", "2016-03-07 15:52:12.525219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.528544"], ["updated_at", "2016-03-07 15:52:12.528544"]]  (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-03-07 15:52:12.530244"], ["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.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-03-07 15:52:12.533561"], ["updated_at", "2016-03-07 15:52:12.533561"]]  (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-03-07 15:52:12.537375"], ["updated_at", "2016-03-07 15:52:12.537375"]]  (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-03-07 15:52:12.539606"], ["updated_at", "2016-03-07 15:52:12.539606"]]  (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-03-07 15:52:12.541536"], ["updated_at", "2016-03-07 15:52:12.541536"]]  (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 (3.0ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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.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-03-07 15:52:12.614402"], ["updated_at", "2016-03-07 15:52:12.614402"]]  (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", "2016-03-07 15:52:12.616583"], ["updated_at", "2016-03-07 15:52:12.616583"]]  (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.6ms) 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 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", "2016-03-07 15:52:12.627127"], ["updated_at", "2016-03-07 15:52:12.627127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:12.630320"], ["updated_at", "2016-03-07 15:52:12.630320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:12.632420"], ["updated_at", "2016-03-07 15:52:12.632420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-03-07 15:52:12.633639"], ["updated_at", "2016-03-07 15:52:12.633639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.636512"], ["updated_at", "2016-03-07 15:52:12.636512"]]  (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-03-07 15:52:12.638387"], ["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-03-07 15:52:12.642971"], ["updated_at", "2016-03-07 15:52:12.642971"]]  (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-03-07 15:52:12.646049"], ["updated_at", "2016-03-07 15:52:12.646049"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (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", "2016-03-07 15:52:12.654950"], ["updated_at", "2016-03-07 15:52:12.654950"]]  (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.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 118"], ["key", "Key 118"], ["secret", "Account 118"], ["canvas_account_id", "117"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:12.658346"], ["updated_at", "2016-03-07 15:52:12.658346"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:12.660581"], ["updated_at", "2016-03-07 15:52:12.660581"]]  (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", "2016-03-07 15:52:12.662579"], ["updated_at", "2016-03-07 15:52:12.662579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.666082"], ["updated_at", "2016-03-07 15:52:12.666082"]]  (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-03-07 15:52:12.667816"], ["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-03-07 15:52:12.670671"], ["updated_at", "2016-03-07 15:52:12.670671"]]  (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-03-07 15:52:12.673212"], ["updated_at", "2016-03-07 15:52:12.673212"]]  (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-03-07 15:52:12.674818"], ["updated_at", "2016-03-07 15:52:12.674818"]]  (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", "2016-03-07 15:52:12.676373"], ["updated_at", "2016-03-07 15:52:12.676373"]]  (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"], ["updated_at", "2016-03-07 15:52:12.690419"], ["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.2ms) 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.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", "2016-03-07 15:52:12.708748"], ["updated_at", "2016-03-07 15:52:12.708748"]]  (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", "2016-03-07 15:52:12.712410"], ["updated_at", "2016-03-07 15:52:12.712410"]]  (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", "47"], ["created_at", "2016-03-07 15:52:12.714484"], ["updated_at", "2016-03-07 15:52:12.714484"]]  (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", "42"], ["created_at", "2016-03-07 15:52:12.715879"], ["updated_at", "2016-03-07 15:52:12.715879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.718744"], ["updated_at", "2016-03-07 15:52:12.718744"]]  (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-03-07 15:52:12.720208"], ["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-03-07 15:52:12.722588"], ["updated_at", "2016-03-07 15:52:12.722588"]]  (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", "2016-03-07 15:52:12.725161"], ["updated_at", "2016-03-07 15:52:12.725161"]]  (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-03-07 15:52:12.727007"], ["updated_at", "2016-03-07 15:52:12.727007"]]  (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.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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:52:12.728715"], ["updated_at", "2016-03-07 15:52:12.728715"]]  (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.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- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-03-07 15:52:12.746108"], ["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.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 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", "2016-03-07 15:52:12.762706"], ["updated_at", "2016-03-07 15:52:12.762706"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:12.765935"], ["updated_at", "2016-03-07 15:52:12.765935"]]  (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", "48"], ["created_at", "2016-03-07 15:52:12.767890"], ["updated_at", "2016-03-07 15:52:12.767890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:12.769048"], ["updated_at", "2016-03-07 15:52:12.769048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.771416"], ["updated_at", "2016-03-07 15:52:12.771416"]]  (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-03-07 15:52:12.772709"], ["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-03-07 15:52:12.774795"], ["updated_at", "2016-03-07 15:52:12.774795"]]  (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-03-07 15:52:12.777050"], ["updated_at", "2016-03-07 15:52:12.777050"]]  (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-03-07 15:52:12.778539"], ["updated_at", "2016-03-07 15:52:12.778539"]]  (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-03-07 15:52:12.779975"], ["updated_at", "2016-03-07 15:52:12.779975"]]  (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", "2016-03-07 15:52:12.793888"], ["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.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.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-03-07 15:52:12.869225"], ["updated_at", "2016-03-07 15:52:12.869225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) 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", "2016-03-07 15:52:12.872607"], ["updated_at", "2016-03-07 15:52:12.872607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:12.874891"], ["updated_at", "2016-03-07 15:52:12.874891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2016-03-07 15:52:12.876322"], ["updated_at", "2016-03-07 15:52:12.876322"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.879156"], ["updated_at", "2016-03-07 15:52:12.879156"]]  (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-03-07 15:52:12.880698"], ["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-03-07 15:52:12.882878"], ["updated_at", "2016-03-07 15:52:12.882878"]]  (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-03-07 15:52:12.885059"], ["updated_at", "2016-03-07 15:52:12.885059"]]  (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-03-07 15:52:12.886562"], ["updated_at", "2016-03-07 15:52:12.886562"]]  (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", "2016-03-07 15:52:12.888014"], ["updated_at", "2016-03-07 15:52:12.888014"]]  (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", "2016-03-07 15:52:12.901987"], ["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-03-07 15:52:12.907630"], ["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.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 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-03-07 15:52:12.917360"], ["updated_at", "2016-03-07 15:52:12.917360"]]  (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", "2016-03-07 15:52:12.921108"], ["updated_at", "2016-03-07 15:52:12.921108"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-03-07 15:52:12.923267"], ["updated_at", "2016-03-07 15:52:12.923267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:12.924516"], ["updated_at", "2016-03-07 15:52:12.924516"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.927075"], ["updated_at", "2016-03-07 15:52:12.927075"]]  (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-03-07 15:52:12.928419"], ["id", 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 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:52:12.936030"], ["updated_at", "2016-03-07 15:52:12.936030"]]  (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 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-03-07 15:52:12.940945"], ["updated_at", "2016-03-07 15:52:12.940945"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:12.943645"], ["updated_at", "2016-03-07 15:52:12.943645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2016-03-07 15:52:12.945190"], ["updated_at", "2016-03-07 15:52:12.945190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.948508"], ["updated_at", "2016-03-07 15:52:12.948508"]]  (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-03-07 15:52:12.950190"], ["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", "2016-03-07 15:52:12.958148"], ["updated_at", "2016-03-07 15:52:12.958148"]]  (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", "2016-03-07 15:52:12.961449"], ["updated_at", "2016-03-07 15:52:12.961449"]]  (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", "2016-03-07 15:52:12.963562"], ["updated_at", "2016-03-07 15:52:12.963562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:12.964762"], ["updated_at", "2016-03-07 15:52:12.964762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.967647"], ["updated_at", "2016-03-07 15:52:12.967647"]]  (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-03-07 15:52:12.969608"], ["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 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", "2016-03-07 15:52:12.978109"], ["updated_at", "2016-03-07 15:52:12.978109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:12.981119"], ["updated_at", "2016-03-07 15:52:12.981119"]]  (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", "53"], ["created_at", "2016-03-07 15:52:12.982906"], ["updated_at", "2016-03-07 15:52:12.982906"]]  (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", "48"], ["created_at", "2016-03-07 15:52:12.985366"], ["updated_at", "2016-03-07 15:52:12.985366"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:12.989041"], ["updated_at", "2016-03-07 15:52:12.989041"]]  (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-03-07 15:52:12.990969"], ["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 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", "2016-03-07 15:52:12.999924"], ["updated_at", "2016-03-07 15:52:12.999924"]]  (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.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", "2016-03-07 15:52:13.003390"], ["updated_at", "2016-03-07 15:52:13.003390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2016-03-07 15:52:13.005419"], ["updated_at", "2016-03-07 15:52:13.005419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:13.006686"], ["updated_at", "2016-03-07 15:52:13.006686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:13.009735"], ["updated_at", "2016-03-07 15:52:13.009735"]]  (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-03-07 15:52:13.011416"], ["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.1ms) 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-03-07 15:52:13.019626"], ["updated_at", "2016-03-07 15:52:13.019626"]]  (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-03-07 15:52:13.023194"], ["updated_at", "2016-03-07 15:52:13.023194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:13.025194"], ["updated_at", "2016-03-07 15:52:13.025194"]]  (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", "50"], ["created_at", "2016-03-07 15:52:13.026686"], ["updated_at", "2016-03-07 15:52:13.026686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:13.029793"], ["updated_at", "2016-03-07 15:52:13.029793"]]  (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-03-07 15:52:13.031471"], ["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", "2016-03-07 15:52:13.039449"], ["updated_at", "2016-03-07 15:52:13.039449"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:13.042578"], ["updated_at", "2016-03-07 15:52:13.042578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-07 15:52:13.044403"], ["updated_at", "2016-03-07 15:52:13.044403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:13.045521"], ["updated_at", "2016-03-07 15:52:13.045521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:13.047889"], ["updated_at", "2016-03-07 15:52:13.047889"]]  (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-03-07 15:52:13.049263"], ["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 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", "2016-03-07 15:52:13.056314"], ["updated_at", "2016-03-07 15:52:13.056314"]]  (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", "2016-03-07 15:52:13.059669"], ["updated_at", "2016-03-07 15:52:13.059669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:13.061569"], ["updated_at", "2016-03-07 15:52:13.061569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2016-03-07 15:52:13.063038"], ["updated_at", "2016-03-07 15:52:13.063038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:13.065637"], ["updated_at", "2016-03-07 15:52:13.065637"]]  (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-03-07 15:52:13.067547"], ["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.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 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-03-07 15:52:13.139228"], ["updated_at", "2016-03-07 15:52:13.139228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:13.142596"], ["updated_at", "2016-03-07 15:52:13.142596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:13.144373"], ["updated_at", "2016-03-07 15:52:13.144373"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-03-07 15:52:13.145493"], ["updated_at", "2016-03-07 15:52:13.145493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:13.148044"], ["updated_at", "2016-03-07 15:52:13.148044"]]  (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-03-07 15:52:13.149354"], ["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", "2016-03-07 15:52:13.152544"], ["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.9ms) 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  (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) SAVEPOINT 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", "2016-03-07 15:52:18.862823"], ["updated_at", "2016-03-07 15:52:18.862823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:52:18.879870"], ["updated_at", "2016-03-07 15:52:18.879870"]]  (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", "2016-03-07 16:52:18.900567"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:52:18.901702"], ["updated_at", "2016-03-07 15:52:18.901702"]]  (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 25ms (Views: 6.9ms | 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.2ms) 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.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.2ms) INSERT INTO "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-03-07 15:52:18.937467"], ["updated_at", "2016-03-07 15:52:18.937467"]]  (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", "2016-03-07 15:52:18.947342"], ["updated_at", "2016-03-07 15:52:18.947342"]]  (0.1ms) 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", "1"], ["created_at", "2016-03-07 15:52:18.950673"], ["updated_at", "2016-03-07 15:52:18.950673"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (53.8ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:52:18.954133"], ["updated_at", "2016-03-07 15:52:18.954133"]]  (0.1ms) 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 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-03-07 15:52:19.020972"], ["updated_at", "2016-03-07 15:52:19.020972"]]  (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.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-03-07 15:52:19.024729"], ["updated_at", "2016-03-07 15:52:19.024729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:19.026694"], ["updated_at", "2016-03-07 15:52:19.026694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-03-07 15:52:19.028111"], ["updated_at", "2016-03-07 15:52:19.028111"]]  (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", "2016-03-07 15:52:19.033646"], ["updated_at", "2016-03-07 15:52:19.033646"]]  (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-03-07 15:52:19.036960"], ["updated_at", "2016-03-07 15:52:19.036960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:19.039222"], ["updated_at", "2016-03-07 15:52:19.039222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-07 15:52:19.040629"], ["updated_at", "2016-03-07 15:52:19.040629"]]  (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.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 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-03-07 15:52:19.060023"], ["updated_at", "2016-03-07 15:52:19.060023"]]  (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-03-07 15:52:19.064629"], ["updated_at", "2016-03-07 15:52:19.064629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:19.067245"], ["updated_at", "2016-03-07 15:52:19.067245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-03-07 15:52:19.068662"], ["updated_at", "2016-03-07 15:52:19.068662"]]  (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.2ms) INSERT INTO "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-03-07 15:52:19.075351"], ["updated_at", "2016-03-07 15:52:19.075351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.078401"], ["updated_at", "2016-03-07 15:52:19.078401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:19.080365"], ["updated_at", "2016-03-07 15:52:19.080365"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-03-07 15:52:19.081576"], ["updated_at", "2016-03-07 15:52:19.081576"]]  (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", "2016-03-07 15:52:19.086742"], ["updated_at", "2016-03-07 15:52:19.086742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.089657"], ["updated_at", "2016-03-07 15:52:19.089657"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:19.091566"], ["updated_at", "2016-03-07 15:52:19.091566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-03-07 15:52:19.092744"], ["updated_at", "2016-03-07 15:52:19.092744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2016-03-07 15:52:19.094369"], ["updated_at", "2016-03-07 15:52:19.094369"]]  (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", "2016-03-07 15:52:19.099978"], ["updated_at", "2016-03-07 15:52:19.099978"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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.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-03-07 15:52:19.106364"], ["updated_at", "2016-03-07 15:52:19.106364"]]  (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-03-07 15:52:19.109973"], ["updated_at", "2016-03-07 15:52:19.109973"]]  (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", "7"], ["created_at", "2016-03-07 15:52:19.111871"], ["updated_at", "2016-03-07 15:52:19.111871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-03-07 15:52:19.113652"], ["updated_at", "2016-03-07 15:52:19.113652"]]  (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.4ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2016-03-07 15:52:19.121481"], ["updated_at", "2016-03-07 15:52:19.121481"]]  (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 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.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.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", "2016-03-08 15:52:19.136389"], ["created_at", "2016-03-07 15:52:19.137540"], ["updated_at", "2016-03-07 15:52:19.137540"]]  (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-03-07 15:52:19.146424"], ["updated_at", "2016-03-07 15:52:19.146424"]]  (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-03-07 15:52:19.148543"], ["updated_at", "2016-03-07 15:52:19.148543"]]  (0.1ms) 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-03-07 15:52:19.150679"], ["updated_at", "2016-03-07 15:52:19.150679"]]  (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.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 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:19.160201"], ["updated_at", "2016-03-07 15:52:19.160201"]]  (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 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-03-07 15:52:19.165749"], ["updated_at", "2016-03-07 15:52:19.165749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-07 15:52:19.168289"], ["updated_at", "2016-03-07 15:52:19.168289"]]  (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 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-03-07 15:52:19.174269"], ["updated_at", "2016-03-07 15:52:19.174269"]]  (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.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' 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 19"], ["key", "Key 19"], ["secret", "Account 19"], ["canvas_account_id", "19"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:19.177942"], ["updated_at", "2016-03-07 15:52:19.177942"]]  (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-03-07 15:52:19.181494"], ["updated_at", "2016-03-07 15:52:19.181494"]]  (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 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:19.187637"], ["updated_at", "2016-03-07 15:52:19.187637"]]  (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.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-03-07 15:52:19.191581"], ["updated_at", "2016-03-07 15:52:19.191581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2016-03-07 15:52:19.193495"], ["updated_at", "2016-03-07 15:52:19.193495"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:52:19.194761"], ["updated_at", "2016-03-07 15:52:19.194761"]]  (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", "2016-03-07 15:52:19.199425"], ["updated_at", "2016-03-07 15:52:19.199425"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.201835"], ["updated_at", "2016-03-07 15:52:19.201835"]]  (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-03-07 15:52:19.203451"], ["updated_at", "2016-03-07 15:52:19.203451"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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", "2016-03-07 15:52:19.208645"], ["updated_at", "2016-03-07 15:52:19.208645"]]  (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", "2016-03-07 15:52:19.210471"], ["updated_at", "2016-03-07 15:52:19.210471"]]  (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", "2016-03-07 15:52:19.213571"], ["updated_at", "2016-03-07 15:52:19.213571"]]  (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", "1"], ["created_at", "2016-03-07 15:52:19.270846"], ["updated_at", "2016-03-07 15:52:19.270846"]]  (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", "2016-03-07 15:52:19.274101"], ["updated_at", "2016-03-07 15:52:19.274101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:52:19.275951"], ["updated_at", "2016-03-07 15:52:19.275951"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:52:19.280724"], ["updated_at", "2016-03-07 15:52:19.280724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.284079"], ["updated_at", "2016-03-07 15:52:19.284079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:19.285871"], ["updated_at", "2016-03-07 15:52:19.285871"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) 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 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", "2016-03-07 15:52:19.297832"], ["updated_at", "2016-03-07 15:52:19.297832"]]  (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", "2016-03-07 15:52:19.300331"], ["updated_at", "2016-03-07 15:52:19.300331"]]  (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", "2016-03-07 15:52:19.309187"], ["updated_at", "2016-03-07 15:52:19.309187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.312368"], ["updated_at", "2016-03-07 15:52:19.312368"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.314151"], ["updated_at", "2016-03-07 15:52:19.314151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:19.315424"], ["updated_at", "2016-03-07 15:52:19.315424"]]  (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-03-07 15:52:19.317381"], ["updated_at", "2016-03-07 15:52:19.317381"]]  (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 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", "2016-03-07 15:52:19.325176"], ["updated_at", "2016-03-07 15:52:19.325176"]]  (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", "2016-03-07 15:52:19.328026"], ["updated_at", "2016-03-07 15:52:19.328026"]]  (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", "2016-03-07 15:52:19.331340"], ["updated_at", "2016-03-07 15:52:19.331340"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.334454"], ["updated_at", "2016-03-07 15:52:19.334454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.336082"], ["updated_at", "2016-03-07 15:52:19.336082"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:52:19.337227"], ["updated_at", "2016-03-07 15:52:19.337227"]]  (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-03-07 15:52:19.338387"], ["updated_at", "2016-03-07 15:52:19.338387"]]  (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", "2016-03-07 15:52:19.344616"], ["updated_at", "2016-03-07 15:52:19.344616"]]  (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", "2016-03-07 15:52:19.346880"], ["updated_at", "2016-03-07 15:52:19.346880"]]  (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-03-07 15:52:19.349631"], ["updated_at", "2016-03-07 15:52:19.349631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:19.352528"], ["updated_at", "2016-03-07 15:52:19.352528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.354009"], ["updated_at", "2016-03-07 15:52:19.354009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:19.355305"], ["updated_at", "2016-03-07 15:52:19.355305"]]  (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-03-07 15:52:19.356878"], ["updated_at", "2016-03-07 15:52:19.356878"]]  (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.2ms) 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-03-07 15:52:19.363882"], ["updated_at", "2016-03-07 15:52:19.363882"]]  (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-03-07 15:52:19.366732"], ["updated_at", "2016-03-07 15:52:19.366732"]]  (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", "2016-03-07 15:52:19.370267"], ["updated_at", "2016-03-07 15:52:19.370267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:19.373277"], ["updated_at", "2016-03-07 15:52:19.373277"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.374758"], ["updated_at", "2016-03-07 15:52:19.374758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:52:19.375890"], ["updated_at", "2016-03-07 15:52:19.375890"]]  (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-03-07 15:52:19.376997"], ["updated_at", "2016-03-07 15:52:19.376997"]]  (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-03-07 15:52:19.378590"], ["updated_at", "2016-03-07 15:52:19.378590"]]  (0.1ms) 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", "2016-03-07 15:52:19.382253"], ["updated_at", "2016-03-07 15:52:19.382253"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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.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 40"], ["key", "Key 40"], ["secret", "Account 40"], ["canvas_account_id", "40"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:19.389788"], ["updated_at", "2016-03-07 15:52:19.389788"]]  (0.1ms) 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", "test6@test.com"], ["name", "Factory User 6"], ["canvas_user_id", "6"], ["created_at", "2016-03-07 15:52:19.393097"], ["updated_at", "2016-03-07 15:52:19.393097"]]  (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", "2016-03-07 15:52:19.396806"], ["updated_at", "2016-03-07 15:52:19.396806"]]  (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", "2016-03-07 15:52:19.399903"], ["updated_at", "2016-03-07 15:52:19.399903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.401777"], ["updated_at", "2016-03-07 15:52:19.401777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:19.403056"], ["updated_at", "2016-03-07 15:52:19.403056"]]  (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-03-07 15:52:19.404208"], ["updated_at", "2016-03-07 15:52:19.404208"]]  (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-03-07 15:52:19.405909"], ["updated_at", "2016-03-07 15:52:19.405909"]]  (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-03-07 15:52:19.407557"], ["updated_at", "2016-03-07 15:52:19.407557"]]  (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 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-03-07 15:52:19.412988"], ["updated_at", "2016-03-07 15:52:19.412988"]]  (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-03-07 15:52:19.415204"], ["updated_at", "2016-03-07 15:52:19.415204"]]  (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 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:52:19.419715"], ["updated_at", "2016-03-07 15:52:19.419715"]]  (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", "2016-03-07 15:52:19.423498"], ["updated_at", "2016-03-07 15:52:19.423498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.425399"], ["updated_at", "2016-03-07 15:52:19.425399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:52:19.426738"], ["updated_at", "2016-03-07 15:52:19.426738"]]  (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", "6"], ["created_at", "2016-03-07 15:52:19.428678"], ["updated_at", "2016-03-07 15:52:19.428678"]]  (0.1ms) 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.1ms) 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", "2016-03-07 15:52:19.444194"], ["updated_at", "2016-03-07 15:52:19.444194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.447381"], ["updated_at", "2016-03-07 15:52:19.447381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-07 15:52:19.449183"], ["updated_at", "2016-03-07 15:52:19.449183"]]  (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", "2016-03-07 15:52:19.450426"], ["updated_at", "2016-03-07 15:52:19.450426"]]  (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 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", "2016-03-07 15:52:19.460050"], ["updated_at", "2016-03-07 15:52:19.460050"]]  (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.1ms) 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", "2016-03-07 15:52:19.464343"], ["updated_at", "2016-03-07 15:52:19.464343"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-07 15:52:19.466493"], ["updated_at", "2016-03-07 15:52:19.466493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:19.467778"], ["updated_at", "2016-03-07 15:52:19.467778"]]  (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", "2016-03-07 15:52:19.472795"], ["updated_at", "2016-03-07 15:52:19.472795"]]  (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 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-03-07 15:52:19.476114"], ["updated_at", "2016-03-07 15:52:19.476114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2016-03-07 15:52:19.477993"], ["updated_at", "2016-03-07 15:52:19.477993"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:19.479219"], ["updated_at", "2016-03-07 15:52:19.479219"]]  (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-03-07 15:52:19.481390"], ["updated_at", "2016-03-07 15:52:19.481390"]]  (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", "2016-03-07 15:52:19.483193"], ["updated_at", "2016-03-07 15:52:19.483193"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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.1ms) 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-03-07 15:52:19.489334"], ["updated_at", "2016-03-07 15:52:19.489334"]]  (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.1ms) 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", "2016-03-07 15:52:19.493330"], ["updated_at", "2016-03-07 15:52:19.493330"]]  (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", "23"], ["created_at", "2016-03-07 15:52:19.495785"], ["updated_at", "2016-03-07 15:52:19.495785"]]  (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", "19"], ["created_at", "2016-03-07 15:52:19.498241"], ["updated_at", "2016-03-07 15:52:19.498241"]]  (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.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.1ms) 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", "2016-03-07 15:52:19.566989"], ["updated_at", "2016-03-07 15:52:19.566989"]]  (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", "2016-03-07 15:52:19.570036"], ["updated_at", "2016-03-07 15:52:19.570036"]]  (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", "2016-03-07 15:52:19.574218"], ["updated_at", "2016-03-07 15:52:19.574218"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.577063"], ["updated_at", "2016-03-07 15:52:19.577063"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.578784"], ["updated_at", "2016-03-07 15:52:19.578784"]]  (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", "20"], ["created_at", "2016-03-07 15:52:19.580169"], ["updated_at", "2016-03-07 15:52:19.580169"]]  (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-03-07 15:52:19.582520"], ["updated_at", "2016-03-07 15:52:19.582520"]]  (0.0ms) RELEASE 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 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-03-07 15:52:19.590846"], ["updated_at", "2016-03-07 15:52:19.590846"]]  (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-03-07 15:52:19.593233"], ["updated_at", "2016-03-07 15:52:19.593233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:19.595814"], ["updated_at", "2016-03-07 15:52:19.595814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:19.598556"], ["updated_at", "2016-03-07 15:52:19.598556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.600040"], ["updated_at", "2016-03-07 15:52:19.600040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-07 15:52:19.601149"], ["updated_at", "2016-03-07 15:52:19.601149"]]  (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-03-07 15:52:19.602436"], ["updated_at", "2016-03-07 15:52:19.602436"]]  (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", "2016-03-07 15:52:19.608345"], ["updated_at", "2016-03-07 15:52:19.608345"]]  (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-03-07 15:52:19.610554"], ["updated_at", "2016-03-07 15:52:19.610554"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.613195"], ["updated_at", "2016-03-07 15:52:19.613195"]]  (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 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", "2016-03-07 15:52:19.617441"], ["updated_at", "2016-03-07 15:52:19.617441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.619969"], ["updated_at", "2016-03-07 15:52:19.619969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:19.621531"], ["updated_at", "2016-03-07 15:52:19.621531"]]  (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-03-07 15:52:19.623032"], ["updated_at", "2016-03-07 15:52:19.623032"]]  (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 64' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' 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 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:19.630350"], ["updated_at", "2016-03-07 15:52:19.630350"]]  (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-03-07 15:52:19.633144"], ["updated_at", "2016-03-07 15:52:19.633144"]]  (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 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-03-07 15:52:19.636457"], ["updated_at", "2016-03-07 15:52:19.636457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:19.639422"], ["updated_at", "2016-03-07 15:52:19.639422"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.640978"], ["updated_at", "2016-03-07 15:52:19.640978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:52:19.642137"], ["updated_at", "2016-03-07 15:52:19.642137"]]  (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-03-07 15:52:19.643295"], ["updated_at", "2016-03-07 15:52:19.643295"]]  (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-03-07 15:52:19.644928"], ["updated_at", "2016-03-07 15:52:19.644928"]]  (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-03-07 15:52:19.646680"], ["updated_at", "2016-03-07 15:52:19.646680"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO 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 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:52:19.653196"], ["updated_at", "2016-03-07 15:52:19.653196"]]  (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-03-07 15:52:19.655948"], ["updated_at", "2016-03-07 15:52:19.655948"]]  (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.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", "2016-03-07 15:52:19.659644"], ["updated_at", "2016-03-07 15:52:19.659644"]]  (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", "2016-03-07 15:52:19.663284"], ["updated_at", "2016-03-07 15:52:19.663284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.665446"], ["updated_at", "2016-03-07 15:52:19.665446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:19.666963"], ["updated_at", "2016-03-07 15:52:19.666963"]]  (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-03-07 15:52:19.668452"], ["updated_at", "2016-03-07 15:52:19.668452"]]  (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-03-07 15:52:19.670433"], ["updated_at", "2016-03-07 15:52:19.670433"]]  (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", "2"], ["created_at", "2016-03-07 15:52:19.672862"], ["updated_at", "2016-03-07 15:52:19.672862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.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 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", "2016-03-07 15:52:19.679390"], ["updated_at", "2016-03-07 15:52:19.679390"]]  (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-03-07 15:52:19.681581"], ["updated_at", "2016-03-07 15:52:19.681581"]]  (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", "2016-03-07 15:52:19.684330"], ["updated_at", "2016-03-07 15:52:19.684330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.686989"], ["updated_at", "2016-03-07 15:52:19.686989"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:52:19.688450"], ["updated_at", "2016-03-07 15:52:19.688450"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:52:19.689561"], ["updated_at", "2016-03-07 15:52:19.689561"]]  (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-03-07 15:52:19.690685"], ["updated_at", "2016-03-07 15:52:19.690685"]]  (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", "2016-03-07 15:52:19.696336"], ["updated_at", "2016-03-07 15:52:19.696336"]]  (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-03-07 15:52:19.701700"], ["updated_at", "2016-03-07 15:52:19.701700"]]  (0.1ms) 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", "2016-03-07 15:52:19.703906"], ["updated_at", "2016-03-07 15:52:19.703906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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", "2016-03-07 15:52:19.705786"], ["updated_at", "2016-03-07 15:52:19.705786"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.712326"], ["updated_at", "2016-03-07 15:52:19.712326"]]  (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.2ms) INSERT INTO "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-03-07 15:52:19.718673"], ["updated_at", "2016-03-07 15:52:19.718673"]]  (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", "2016-03-07 15:52:19.724366"], ["updated_at", "2016-03-07 15:52:19.724366"]]  (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-03-07 15:52:19.727016"], ["updated_at", "2016-03-07 15:52:19.727016"]]  (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-03-07 15:52:19.729427"], ["updated_at", "2016-03-07 15:52:19.729427"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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-03-07 15:52:19.733904"], ["updated_at", "2016-03-07 15:52:19.733904"]]  (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-03-07 15:52:19.740351"], ["updated_at", "2016-03-07 15:52:19.740351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:19.751301"], ["updated_at", "2016-03-07 15:52:19.751301"]]  (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", "2016-03-07 15:52:19.753391"], ["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.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 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-03-07 15:52:19.761558"], ["updated_at", "2016-03-07 15:52:19.761558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:19.765875"], ["updated_at", "2016-03-07 15:52:19.765875"]]  (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-03-07 15:52:19.767695"], ["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", "2016-03-07 15:52:19.773122"], ["updated_at", "2016-03-07 15:52:19.773122"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:19.776445"], ["updated_at", "2016-03-07 15:52:19.776445"]]  (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-03-07 15:52:19.777918"], ["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", "2016-03-07 15:52:19.843727"], ["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", "2016-03-07 15:52:19.848243"], ["updated_at", "2016-03-07 15:52:19.848243"]]  (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-03-07 15:52:19.850018"], ["updated_at", "2016-03-07 15:52:19.850018"]]  (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", "2016-03-07 15:52:19.851528"], ["updated_at", "2016-03-07 15:52:19.851528"]]  (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-03-07 15:52:19.853600"], ["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-03-07 15:52:19.854699"], ["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.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", "2016-03-07 15:52:19.860756"], ["updated_at", "2016-03-07 15:52:19.860756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:19.864256"], ["updated_at", "2016-03-07 15:52:19.864256"]]  (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-03-07 15:52:19.865691"], ["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-03-07 15:52:19.869438"], ["updated_at", "2016-03-07 15:52:19.869438"]]  (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", "2016-03-07 15:52:19.871566"], ["updated_at", "2016-03-07 15:52:19.871566"]]  (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", "2016-03-07 15:52:19.878481"], ["updated_at", "2016-03-07 15:52:19.878481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:19.881879"], ["updated_at", "2016-03-07 15:52:19.881879"]]  (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-03-07 15:52:19.883656"], ["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.4ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:52:19.885936"], ["updated_at", "2016-03-07 15:52:19.885936"]]  (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-03-07 15:52:19.887828"], ["updated_at", "2016-03-07 15:52:19.887828"]]  (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", "2016-03-07 15:52:19.889357"], ["updated_at", "2016-03-07 15:52:19.889357"]]  (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", "2016-03-07 15:52:19.895375"], ["updated_at", "2016-03-07 15:52:19.895375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:19.899274"], ["updated_at", "2016-03-07 15:52:19.899274"]]  (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-03-07 15:52:19.900814"], ["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", "2016-03-07 15:52:19.905897"], ["updated_at", "2016-03-07 15:52:19.905897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:19.908879"], ["updated_at", "2016-03-07 15:52:19.908879"]]  (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-03-07 15:52:19.910263"], ["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.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 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", "2016-03-07 15:52:19.916254"], ["updated_at", "2016-03-07 15:52:19.916254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:52:19.919720"], ["updated_at", "2016-03-07 15:52:19.919720"]]  (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-03-07 15:52:19.921215"], ["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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2016-03-07 15:52:19.923705"], ["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-03-07 15:52:19.932283"], ["updated_at", "2016-03-07 15:52:19.932283"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.935610"], ["updated_at", "2016-03-07 15:52:19.935610"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:19.937643"], ["updated_at", "2016-03-07 15:52:19.937643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2016-03-07 15:52:19.938946"], ["updated_at", "2016-03-07 15:52:19.938946"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:19.941594"], ["updated_at", "2016-03-07 15:52:19.941594"]]  (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-03-07 15:52:19.942935"], ["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.2ms) 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-03-07 15:52:19.951474"], ["updated_at", "2016-03-07 15:52:19.951474"]]  (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.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", "2016-03-07 15:52:19.955507"], ["updated_at", "2016-03-07 15:52:19.955507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:19.957707"], ["updated_at", "2016-03-07 15:52:19.957707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-07 15:52:19.959002"], ["updated_at", "2016-03-07 15:52:19.959002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:19.962689"], ["updated_at", "2016-03-07 15:52:19.962689"]]  (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-03-07 15:52:19.964609"], ["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-03-07 15:52:19.972599"], ["updated_at", "2016-03-07 15:52:19.972599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:19.975747"], ["updated_at", "2016-03-07 15:52:19.975747"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2016-03-07 15:52:19.977464"], ["updated_at", "2016-03-07 15:52:19.977464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:19.978821"], ["updated_at", "2016-03-07 15:52:19.978821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:19.981281"], ["updated_at", "2016-03-07 15:52:19.981281"]]  (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", "2016-03-07 15:52:19.982661"], ["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 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-03-07 15:52:19.990235"], ["updated_at", "2016-03-07 15:52:19.990235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:52:19.993523"], ["updated_at", "2016-03-07 15:52:19.993523"]]  (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", "34"], ["created_at", "2016-03-07 15:52:19.996245"], ["updated_at", "2016-03-07 15:52:19.996245"]]  (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", "29"], ["created_at", "2016-03-07 15:52:19.998559"], ["updated_at", "2016-03-07 15:52:19.998559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.002078"], ["updated_at", "2016-03-07 15:52:20.002078"]]  (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-03-07 15:52:20.003876"], ["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", "2016-03-07 15:52:20.011916"], ["updated_at", "2016-03-07 15:52:20.011916"]]  (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.1ms) 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-03-07 15:52:20.015542"], ["updated_at", "2016-03-07 15:52:20.015542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-03-07 15:52:20.018079"], ["updated_at", "2016-03-07 15:52:20.018079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:20.019579"], ["updated_at", "2016-03-07 15:52:20.019579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.022734"], ["updated_at", "2016-03-07 15:52:20.022734"]]  (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-03-07 15:52:20.024407"], ["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-03-07 15:52:20.031583"], ["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-03-07 15:52:20.036301"], ["updated_at", "2016-03-07 15:52:20.036301"]]  (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-03-07 15:52:20.039054"], ["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", "2016-03-07 15:52:20.042621"], ["updated_at", "2016-03-07 15:52:20.042621"]]  (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-03-07 15:52:20.044627"], ["updated_at", "2016-03-07 15:52:20.044627"]]  (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-03-07 15:52:20.046217"], ["updated_at", "2016-03-07 15:52:20.046217"]]  (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", "2016-03-07 15:52:20.113538"], ["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", "2016-03-07 15:52:20.129071"], ["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.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", "2016-03-07 15:52:20.134003"], ["updated_at", "2016-03-07 15:52:20.134003"]]  (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", "2016-03-07 15:52:20.137837"], ["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.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", "2016-03-07 15:52:20.156123"], ["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", "2016-03-07 15:52:20.158911"], ["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.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"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]]  (0.1ms) 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", "2016-03-07 15:52:20.174516"], ["updated_at", "2016-03-07 15:52:20.174516"]]  (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-03-07 15:52:20.178796"], ["updated_at", "2016-03-07 15:52:20.178796"]]  (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", "2016-03-07 15:52:20.181508"], ["id", 1]]  (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" = ? [["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.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", "2016-03-07 15:52:20.195077"], ["updated_at", "2016-03-07 15:52:20.195077"]]  (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-03-07 15:52:20.200097"], ["updated_at", "2016-03-07 15:52:20.200097"]]  (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 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-03-07 15:52:20.206548"], ["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-03-07 15:52:20.207800"], ["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.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", "2016-03-07 15:52:20.216356"], ["updated_at", "2016-03-07 15:52:20.216356"]]  (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", "2016-03-07 15:52:20.219612"], ["updated_at", "2016-03-07 15:52:20.219612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:20.221578"], ["updated_at", "2016-03-07 15:52:20.221578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-03-07 15:52:20.222876"], ["updated_at", "2016-03-07 15:52:20.222876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.225972"], ["updated_at", "2016-03-07 15:52:20.225972"]]  (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-03-07 15:52:20.227683"], ["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-03-07 15:52:20.230350"], ["updated_at", "2016-03-07 15:52:20.230350"]]  (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.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", "2016-03-07 15:52:20.238986"], ["updated_at", "2016-03-07 15:52:20.238986"]]  (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", "2016-03-07 15:52:20.242319"], ["updated_at", "2016-03-07 15:52:20.242319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:20.244255"], ["updated_at", "2016-03-07 15:52:20.244255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-07 15:52:20.245883"], ["updated_at", "2016-03-07 15:52:20.245883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.249529"], ["updated_at", "2016-03-07 15:52:20.249529"]]  (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-03-07 15:52:20.251302"], ["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", "2016-03-07 15:52:20.253801"], ["updated_at", "2016-03-07 15:52:20.253801"]]  (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-03-07 15:52:20.255487"], ["updated_at", "2016-03-07 15:52:20.255487"]]  (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", "2016-03-07 15:52:20.257043"], ["updated_at", "2016-03-07 15:52:20.257043"]]  (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.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.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", "2016-03-07 15:52:20.266205"], ["updated_at", "2016-03-07 15:52:20.266205"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:52:20.269290"], ["updated_at", "2016-03-07 15:52:20.269290"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:20.271151"], ["updated_at", "2016-03-07 15:52:20.271151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-07 15:52:20.272317"], ["updated_at", "2016-03-07 15:52:20.272317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.274740"], ["updated_at", "2016-03-07 15:52:20.274740"]]  (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-03-07 15:52:20.276178"], ["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-03-07 15:52:20.278240"], ["updated_at", "2016-03-07 15:52:20.278240"]]  (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.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-03-07 15:52:20.280380"], ["updated_at", "2016-03-07 15:52:20.280380"]]  (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-03-07 15:52:20.282133"], ["updated_at", "2016-03-07 15:52:20.282133"]]  (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-03-07 15:52:20.284024"], ["updated_at", "2016-03-07 15:52:20.284024"]]  (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.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.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]]  (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.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 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", "2016-03-07 15:52:20.365382"], ["updated_at", "2016-03-07 15:52:20.365382"]]  (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.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-03-07 15:52:20.369388"], ["updated_at", "2016-03-07 15:52:20.369388"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-07 15:52:20.371469"], ["updated_at", "2016-03-07 15:52:20.371469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:20.372695"], ["updated_at", "2016-03-07 15:52:20.372695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.375247"], ["updated_at", "2016-03-07 15:52:20.375247"]]  (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-03-07 15:52:20.376677"], ["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", "2016-03-07 15:52:20.383126"], ["updated_at", "2016-03-07 15:52:20.383126"]]  (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.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 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", "2016-03-07 15:52:20.394516"], ["updated_at", "2016-03-07 15:52:20.394516"]]  (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 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' 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 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:20.399525"], ["updated_at", "2016-03-07 15:52:20.399525"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:20.402211"], ["updated_at", "2016-03-07 15:52:20.402211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2016-03-07 15:52:20.403783"], ["updated_at", "2016-03-07 15:52:20.403783"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.406814"], ["updated_at", "2016-03-07 15:52:20.406814"]]  (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-03-07 15:52:20.408308"], ["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-03-07 15:52:20.410517"], ["updated_at", "2016-03-07 15:52:20.410517"]]  (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.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]]  (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", "2016-03-07 15:52:20.429618"], ["updated_at", "2016-03-07 15:52:20.429618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:20.432652"], ["updated_at", "2016-03-07 15:52:20.432652"]]  (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", "2016-03-07 15:52:20.434683"], ["updated_at", "2016-03-07 15:52:20.434683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:20.435844"], ["updated_at", "2016-03-07 15:52:20.435844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.438844"], ["updated_at", "2016-03-07 15:52:20.438844"]]  (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-03-07 15:52:20.440691"], ["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-03-07 15:52:20.443214"], ["updated_at", "2016-03-07 15:52:20.443214"]]  (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"  (1.0ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Submission Load (0.2ms) 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:20.453890"], ["updated_at", "2016-03-07 15:52:20.453890"]]  (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.1ms) 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", "2016-03-07 15:52:20.458856"], ["updated_at", "2016-03-07 15:52:20.458856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2016-03-07 15:52:20.461261"], ["updated_at", "2016-03-07 15:52:20.461261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:20.462710"], ["updated_at", "2016-03-07 15:52:20.462710"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.466043"], ["updated_at", "2016-03-07 15:52:20.466043"]]  (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-03-07 15:52:20.467708"], ["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-03-07 15:52:20.470075"], ["updated_at", "2016-03-07 15:52:20.470075"]]  (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.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-03-07 15:52:20.473882"], ["updated_at", "2016-03-07 15:52:20.473882"]]  (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-03-07 15:52:20.476869"], ["updated_at", "2016-03-07 15:52:20.476869"]]  (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-03-07 15:52:20.479329"], ["updated_at", "2016-03-07 15:52:20.479329"]]  (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.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-03-07 15:52:20.507301"], ["updated_at", "2016-03-07 15:52:20.507301"]]  (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", "2016-03-07 15:52:20.510372"], ["updated_at", "2016-03-07 15:52:20.510372"]]  (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", "2016-03-07 15:52:20.513081"], ["updated_at", "2016-03-07 15:52:20.513081"]]  (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", "2016-03-07 15:52:20.515917"], ["updated_at", "2016-03-07 15:52:20.515917"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (1.1ms) 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-03-07 15:52:20.523911"], ["updated_at", "2016-03-07 15:52:20.523911"]]  (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.1ms) 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-03-07 15:52:20.527070"], ["updated_at", "2016-03-07 15:52:20.527070"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-03-07 15:52:20.528888"], ["updated_at", "2016-03-07 15:52:20.528888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:20.529987"], ["updated_at", "2016-03-07 15:52:20.529987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.532500"], ["updated_at", "2016-03-07 15:52:20.532500"]]  (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-03-07 15:52:20.533793"], ["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-03-07 15:52:20.535916"], ["updated_at", "2016-03-07 15:52:20.535916"]]  (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-03-07 15:52:20.539299"], ["updated_at", "2016-03-07 15:52:20.539299"]]  (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-03-07 15:52:20.541502"], ["updated_at", "2016-03-07 15:52:20.541502"]]  (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.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 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.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 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:52:20.605090"], ["updated_at", "2016-03-07 15:52:20.605090"]]  (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", "2016-03-07 15:52:20.608823"], ["updated_at", "2016-03-07 15:52:20.608823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2016-03-07 15:52:20.610745"], ["updated_at", "2016-03-07 15:52:20.610745"]]  (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", "2016-03-07 15:52:20.612348"], ["updated_at", "2016-03-07 15:52:20.612348"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.614940"], ["updated_at", "2016-03-07 15:52:20.614940"]]  (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-03-07 15:52:20.616513"], ["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-03-07 15:52:20.619689"], ["updated_at", "2016-03-07 15:52:20.619689"]]  (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-03-07 15:52:20.622373"], ["updated_at", "2016-03-07 15:52:20.622373"]]  (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-03-07 15:52:20.624212"], ["updated_at", "2016-03-07 15:52:20.624212"]]  (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", "2016-03-07 15:52:20.625897"], ["updated_at", "2016-03-07 15:52:20.625897"]]  (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", "2016-03-07 15:52:20.641446"], ["updated_at", "2016-03-07 15:52:20.641446"]]  (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", "2016-03-07 15:52:20.643593"], ["updated_at", "2016-03-07 15:52:20.643593"]]  (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.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-03-07 15:52:20.655454"], ["updated_at", "2016-03-07 15:52:20.655454"]]  (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.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", "2016-03-07 15:52:20.659208"], ["updated_at", "2016-03-07 15:52:20.659208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:20.661191"], ["updated_at", "2016-03-07 15:52:20.661191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-03-07 15:52:20.662434"], ["updated_at", "2016-03-07 15:52:20.662434"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.664957"], ["updated_at", "2016-03-07 15:52:20.664957"]]  (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-03-07 15:52:20.666278"], ["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-03-07 15:52:20.670038"], ["updated_at", "2016-03-07 15:52:20.670038"]]  (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-03-07 15:52:20.672732"], ["updated_at", "2016-03-07 15:52:20.672732"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (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", "2016-03-07 15:52:20.680303"], ["updated_at", "2016-03-07 15:52:20.680303"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:20.683439"], ["updated_at", "2016-03-07 15:52:20.683439"]]  (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", "46"], ["created_at", "2016-03-07 15:52:20.685703"], ["updated_at", "2016-03-07 15:52:20.685703"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-07 15:52:20.686896"], ["updated_at", "2016-03-07 15:52:20.686896"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.689410"], ["updated_at", "2016-03-07 15:52:20.689410"]]  (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-03-07 15:52:20.691254"], ["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-03-07 15:52:20.694044"], ["updated_at", "2016-03-07 15:52:20.694044"]]  (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-03-07 15:52:20.696572"], ["updated_at", "2016-03-07 15:52:20.696572"]]  (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-03-07 15:52:20.698451"], ["updated_at", "2016-03-07 15:52:20.698451"]]  (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", "2016-03-07 15:52:20.700132"], ["updated_at", "2016-03-07 15:52:20.700132"]]  (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"], ["updated_at", "2016-03-07 15:52:20.714089"], ["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.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-03-07 15:52:20.730651"], ["updated_at", "2016-03-07 15:52:20.730651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:20.733708"], ["updated_at", "2016-03-07 15:52:20.733708"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-07 15:52:20.735426"], ["updated_at", "2016-03-07 15:52:20.735426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:20.736633"], ["updated_at", "2016-03-07 15:52:20.736633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.739092"], ["updated_at", "2016-03-07 15:52:20.739092"]]  (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-03-07 15:52:20.740592"], ["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-03-07 15:52:20.742741"], ["updated_at", "2016-03-07 15:52:20.742741"]]  (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-03-07 15:52:20.744771"], ["updated_at", "2016-03-07 15:52:20.744771"]]  (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-03-07 15:52:20.746257"], ["updated_at", "2016-03-07 15:52:20.746257"]]  (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", "2016-03-07 15:52:20.747706"], ["updated_at", "2016-03-07 15:52:20.747706"]]  (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.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", "2016-03-07 15:52:20.761854"], ["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.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", "2016-03-07 15:52:20.779034"], ["updated_at", "2016-03-07 15:52:20.779034"]]  (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-03-07 15:52:20.782126"], ["updated_at", "2016-03-07 15:52:20.782126"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-07 15:52:20.783960"], ["updated_at", "2016-03-07 15:52:20.783960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:20.785217"], ["updated_at", "2016-03-07 15:52:20.785217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.787816"], ["updated_at", "2016-03-07 15:52:20.787816"]]  (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-03-07 15:52:20.789214"], ["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-03-07 15:52:20.791390"], ["updated_at", "2016-03-07 15:52:20.791390"]]  (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-03-07 15:52:20.793480"], ["updated_at", "2016-03-07 15:52:20.793480"]]  (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-03-07 15:52:20.794986"], ["updated_at", "2016-03-07 15:52:20.794986"]]  (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", "2016-03-07 15:52:20.796516"], ["updated_at", "2016-03-07 15:52:20.796516"]]  (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.0ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "2016-03-07 15:52:20.864792"], ["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.5ms) 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.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", "2016-03-07 15:52:20.881491"], ["updated_at", "2016-03-07 15:52:20.881491"]]  (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.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", "2016-03-07 15:52:20.884629"], ["updated_at", "2016-03-07 15:52:20.884629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:20.886351"], ["updated_at", "2016-03-07 15:52:20.886351"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2016-03-07 15:52:20.887731"], ["updated_at", "2016-03-07 15:52:20.887731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.890459"], ["updated_at", "2016-03-07 15:52:20.890459"]]  (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-03-07 15:52:20.891892"], ["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-03-07 15:52:20.893918"], ["updated_at", "2016-03-07 15:52:20.893918"]]  (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-03-07 15:52:20.895935"], ["updated_at", "2016-03-07 15:52:20.895935"]]  (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", "2016-03-07 15:52:20.898013"], ["updated_at", "2016-03-07 15:52:20.898013"]]  (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", "2016-03-07 15:52:20.899546"], ["updated_at", "2016-03-07 15:52:20.899546"]]  (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.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- :soft_delete\n"], ["updated_at", "2016-03-07 15:52:20.917767"], ["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-03-07 15:52:20.924949"], ["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", "2016-03-07 15:52:20.934206"], ["updated_at", "2016-03-07 15:52:20.934206"]]  (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", "2016-03-07 15:52:20.937325"], ["updated_at", "2016-03-07 15:52:20.937325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-03-07 15:52:20.939132"], ["updated_at", "2016-03-07 15:52:20.939132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:20.940310"], ["updated_at", "2016-03-07 15:52:20.940310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.942739"], ["updated_at", "2016-03-07 15:52:20.942739"]]  (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-03-07 15:52:20.944046"], ["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", "2016-03-07 15:52:20.951370"], ["updated_at", "2016-03-07 15:52:20.951370"]]  (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 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", "2016-03-07 15:52:20.954395"], ["updated_at", "2016-03-07 15:52:20.954395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:20.956071"], ["updated_at", "2016-03-07 15:52:20.956071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2016-03-07 15:52:20.957315"], ["updated_at", "2016-03-07 15:52:20.957315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.959703"], ["updated_at", "2016-03-07 15:52:20.959703"]]  (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-03-07 15:52:20.961145"], ["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.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-03-07 15:52:20.968999"], ["updated_at", "2016-03-07 15:52:20.968999"]]  (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.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-03-07 15:52:20.973114"], ["updated_at", "2016-03-07 15:52:20.973114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2016-03-07 15:52:20.975042"], ["updated_at", "2016-03-07 15:52:20.975042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:20.976254"], ["updated_at", "2016-03-07 15:52:20.976254"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.978780"], ["updated_at", "2016-03-07 15:52:20.978780"]]  (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-03-07 15:52:20.980245"], ["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 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.2ms) INSERT INTO "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-03-07 15:52:20.988275"], ["updated_at", "2016-03-07 15:52:20.988275"]]  (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.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", "2016-03-07 15:52:20.991555"], ["updated_at", "2016-03-07 15:52:20.991555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:20.993342"], ["updated_at", "2016-03-07 15:52:20.993342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-07 15:52:20.994514"], ["updated_at", "2016-03-07 15:52:20.994514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:20.997158"], ["updated_at", "2016-03-07 15:52:20.997158"]]  (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-03-07 15:52:20.998590"], ["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 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", "2016-03-07 15:52:21.007903"], ["updated_at", "2016-03-07 15:52:21.007903"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:21.011334"], ["updated_at", "2016-03-07 15:52:21.011334"]]  (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", "54"], ["created_at", "2016-03-07 15:52:21.013431"], ["updated_at", "2016-03-07 15:52:21.013431"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:21.014750"], ["updated_at", "2016-03-07 15:52:21.014750"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:21.017456"], ["updated_at", "2016-03-07 15:52:21.017456"]]  (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-03-07 15:52:21.019025"], ["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 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", "2016-03-07 15:52:21.026879"], ["updated_at", "2016-03-07 15:52:21.026879"]]  (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.1ms) 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", "2016-03-07 15:52:21.030626"], ["updated_at", "2016-03-07 15:52:21.030626"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:21.033030"], ["updated_at", "2016-03-07 15:52:21.033030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-03-07 15:52:21.034441"], ["updated_at", "2016-03-07 15:52:21.034441"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:21.037061"], ["updated_at", "2016-03-07 15:52:21.037061"]]  (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-03-07 15:52:21.038438"], ["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", "2016-03-07 15:52:21.045514"], ["updated_at", "2016-03-07 15:52:21.045514"]]  (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", "2016-03-07 15:52:21.048607"], ["updated_at", "2016-03-07 15:52:21.048607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-07 15:52:21.050570"], ["updated_at", "2016-03-07 15:52:21.050570"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:52:21.052050"], ["updated_at", "2016-03-07 15:52:21.052050"]]  (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", "2016-03-07 15:52:21.055154"], ["updated_at", "2016-03-07 15:52:21.055154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (60.3ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-03-07 15:52:21.056811"], ["id", 1]]  (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 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-03-07 15:52:21.125080"], ["updated_at", "2016-03-07 15:52:21.125080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:21.128064"], ["updated_at", "2016-03-07 15:52:21.128064"]]  (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", "57"], ["created_at", "2016-03-07 15:52:21.130196"], ["updated_at", "2016-03-07 15:52:21.130196"]]  (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", "52"], ["created_at", "2016-03-07 15:52:21.132576"], ["updated_at", "2016-03-07 15:52:21.132576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:21.136363"], ["updated_at", "2016-03-07 15:52:21.136363"]]  (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-03-07 15:52:21.138196"], ["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-03-07 15:52:21.147477"], ["updated_at", "2016-03-07 15:52:21.147477"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:52:21.150581"], ["updated_at", "2016-03-07 15:52:21.150581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:52:21.152337"], ["updated_at", "2016-03-07 15:52:21.152337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-03-07 15:52:21.153530"], ["updated_at", "2016-03-07 15:52:21.153530"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:52:21.156191"], ["updated_at", "2016-03-07 15:52:21.156191"]]  (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-03-07 15:52:21.157660"], ["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", "2016-03-07 15:52:21.160677"], ["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 Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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.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-03-07 15:53:09.832753"], ["updated_at", "2016-03-07 15:53:09.832753"]]  (0.1ms) 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", "2016-03-07 15:53:09.850847"], ["updated_at", "2016-03-07 15:53:09.850847"]]  (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.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-03-07 16:53:09.876457"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:53:09.877864"], ["updated_at", "2016-03-07 15:53:09.877864"]]  (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 33ms (Views: 9.4ms | ActiveRecord: 1.0ms) 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.7ms | 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.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.2ms) INSERT INTO "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-03-07 15:53:09.914191"], ["updated_at", "2016-03-07 15:53:09.914191"]]  (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.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", "2016-03-07 15:53:09.970657"], ["updated_at", "2016-03-07 15:53:09.970657"]]  (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", "2016-03-07 15:53:09.973792"], ["updated_at", "2016-03-07 15:53:09.973792"]]  (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", "2016-03-07 15:53:09.976388"], ["updated_at", "2016-03-07 15:53:09.976388"]]  (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", "2016-03-07 15:53:09.989129"], ["updated_at", "2016-03-07 15:53:09.989129"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:09.992198"], ["updated_at", "2016-03-07 15:53:09.992198"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:09.993906"], ["updated_at", "2016-03-07 15:53:09.993906"]]  (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", "2"], ["created_at", "2016-03-07 15:53:09.995095"], ["updated_at", "2016-03-07 15:53:09.995095"]]  (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", "2016-03-07 15:53:10.000663"], ["updated_at", "2016-03-07 15:53:10.000663"]]  (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", "2016-03-07 15:53:10.003998"], ["updated_at", "2016-03-07 15:53:10.003998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:10.005906"], ["updated_at", "2016-03-07 15:53:10.005906"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-07 15:53:10.007063"], ["updated_at", "2016-03-07 15:53:10.007063"]]  (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", "2016-03-07 15:53:10.024362"], ["updated_at", "2016-03-07 15:53:10.024362"]]  (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.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", "2016-03-07 15:53:10.028427"], ["updated_at", "2016-03-07 15:53:10.028427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:10.030634"], ["updated_at", "2016-03-07 15:53:10.030634"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-03-07 15:53:10.032006"], ["updated_at", "2016-03-07 15:53:10.032006"]]  (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.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", "2016-03-07 15:53:10.038424"], ["updated_at", "2016-03-07 15:53:10.038424"]]  (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", "2016-03-07 15:53:10.041704"], ["updated_at", "2016-03-07 15:53:10.041704"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:10.044021"], ["updated_at", "2016-03-07 15:53:10.044021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-03-07 15:53:10.045294"], ["updated_at", "2016-03-07 15:53:10.045294"]]  (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 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-03-07 15:53:10.051240"], ["updated_at", "2016-03-07 15:53:10.051240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:10.054469"], ["updated_at", "2016-03-07 15:53:10.054469"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:10.056136"], ["updated_at", "2016-03-07 15:53:10.056136"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-03-07 15:53:10.057325"], ["updated_at", "2016-03-07 15:53:10.057325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:53:10.059227"], ["updated_at", "2016-03-07 15:53:10.059227"]]  (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-03-07 15:53:10.063946"], ["updated_at", "2016-03-07 15:53:10.063946"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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.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-03-07 15:53:10.069364"], ["updated_at", "2016-03-07 15:53:10.069364"]]  (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-03-07 15:53:10.073315"], ["updated_at", "2016-03-07 15:53:10.073315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:10.075272"], ["updated_at", "2016-03-07 15:53:10.075272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-03-07 15:53:10.076594"], ["updated_at", "2016-03-07 15:53:10.076594"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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-03-07 15:53:10.082161"], ["updated_at", "2016-03-07 15:53:10.082161"]]  (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.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.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", "2016-03-08 15:53:10.095453"], ["created_at", "2016-03-07 15:53:10.096648"], ["updated_at", "2016-03-07 15:53:10.096648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:53:10.106708"], ["updated_at", "2016-03-07 15:53:10.106708"]]  (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", "2016-03-07 15:53:10.109387"], ["updated_at", "2016-03-07 15:53:10.109387"]]  (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-03-07 15:53:10.111298"], ["updated_at", "2016-03-07 15:53:10.111298"]]  (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.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.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 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:53:10.123671"], ["updated_at", "2016-03-07 15:53:10.123671"]]  (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", "2016-03-07 15:53:10.127223"], ["updated_at", "2016-03-07 15:53:10.127223"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-07 15:53:10.129076"], ["updated_at", "2016-03-07 15:53:10.129076"]]  (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.1ms) 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", "2016-03-07 15:53:10.135473"], ["updated_at", "2016-03-07 15:53:10.135473"]]  (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.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-03-07 15:53:10.140370"], ["updated_at", "2016-03-07 15:53:10.140370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:10.142682"], ["updated_at", "2016-03-07 15:53:10.142682"]]  (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.1ms) 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", "2016-03-07 15:53:10.147916"], ["updated_at", "2016-03-07 15:53:10.147916"]]  (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.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-03-07 15:53:10.152808"], ["updated_at", "2016-03-07 15:53:10.152808"]]  (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", "10"], ["created_at", "2016-03-07 15:53:10.210898"], ["updated_at", "2016-03-07 15:53:10.210898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:53:10.212466"], ["updated_at", "2016-03-07 15:53:10.212466"]]  (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", "2016-03-07 15:53:10.215622"], ["updated_at", "2016-03-07 15:53:10.215622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:10.217338"], ["updated_at", "2016-03-07 15:53:10.217338"]]  (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-03-07 15:53:10.218494"], ["updated_at", "2016-03-07 15:53:10.218494"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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", "2016-03-07 15:53:10.223135"], ["updated_at", "2016-03-07 15:53:10.223135"]]  (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", "2016-03-07 15:53:10.224820"], ["updated_at", "2016-03-07 15:53:10.224820"]]  (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", "2016-03-07 15:53:10.227629"], ["updated_at", "2016-03-07 15:53:10.227629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:53:10.229460"], ["updated_at", "2016-03-07 15:53:10.229460"]]  (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.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-03-07 15:53:10.232864"], ["updated_at", "2016-03-07 15:53:10.232864"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:53:10.235294"], ["updated_at", "2016-03-07 15:53:10.235294"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:53:10.240051"], ["updated_at", "2016-03-07 15:53:10.240051"]]  (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.1ms) 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", "2016-03-07 15:53:10.243632"], ["updated_at", "2016-03-07 15:53:10.243632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:10.246101"], ["updated_at", "2016-03-07 15:53:10.246101"]]  (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 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", "2016-03-07 15:53:10.258854"], ["updated_at", "2016-03-07 15:53:10.258854"]]  (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", "2016-03-07 15:53:10.261081"], ["updated_at", "2016-03-07 15:53:10.261081"]]  (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.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", "2016-03-07 15:53:10.270657"], ["updated_at", "2016-03-07 15:53:10.270657"]]  (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", "2016-03-07 15:53:10.274151"], ["updated_at", "2016-03-07 15:53:10.274151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:10.275723"], ["updated_at", "2016-03-07 15:53:10.275723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.276825"], ["updated_at", "2016-03-07 15:53:10.276825"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-03-07 15:53:10.278843"], ["updated_at", "2016-03-07 15:53:10.278843"]]  (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 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", "2016-03-07 15:53:10.286610"], ["updated_at", "2016-03-07 15:53:10.286610"]]  (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", "2016-03-07 15:53:10.288944"], ["updated_at", "2016-03-07 15:53:10.288944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:53:10.291625"], ["updated_at", "2016-03-07 15:53:10.291625"]]  (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", "2016-03-07 15:53:10.294402"], ["updated_at", "2016-03-07 15:53:10.294402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:10.295932"], ["updated_at", "2016-03-07 15:53:10.295932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:53:10.297034"], ["updated_at", "2016-03-07 15:53:10.297034"]]  (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-03-07 15:53:10.298143"], ["updated_at", "2016-03-07 15:53:10.298143"]]  (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", "2016-03-07 15:53:10.304022"], ["updated_at", "2016-03-07 15:53:10.304022"]]  (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", "2016-03-07 15:53:10.306094"], ["updated_at", "2016-03-07 15:53:10.306094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:10.308599"], ["updated_at", "2016-03-07 15:53:10.308599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:53:10.311255"], ["updated_at", "2016-03-07 15:53:10.311255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:10.313091"], ["updated_at", "2016-03-07 15:53:10.313091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.314686"], ["updated_at", "2016-03-07 15:53:10.314686"]]  (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-03-07 15:53:10.316261"], ["updated_at", "2016-03-07 15:53:10.316261"]]  (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 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", "2016-03-07 15:53:10.323054"], ["updated_at", "2016-03-07 15:53:10.323054"]]  (0.1ms) 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", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2016-03-07 15:53:10.326567"], ["updated_at", "2016-03-07 15:53:10.326567"]]  (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 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", "2016-03-07 15:53:10.331170"], ["updated_at", "2016-03-07 15:53:10.331170"]]  (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.1ms) 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", "2016-03-07 15:53:10.334847"], ["updated_at", "2016-03-07 15:53:10.334847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:10.336910"], ["updated_at", "2016-03-07 15:53:10.336910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:53:10.338298"], ["updated_at", "2016-03-07 15:53:10.338298"]]  (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-03-07 15:53:10.339670"], ["updated_at", "2016-03-07 15:53:10.339670"]]  (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", "2016-03-07 15:53:10.341460"], ["updated_at", "2016-03-07 15:53:10.341460"]]  (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", "2016-03-07 15:53:10.345275"], ["updated_at", "2016-03-07 15:53:10.345275"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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", "2016-03-07 15:53:10.352563"], ["updated_at", "2016-03-07 15:53:10.352563"]]  (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", "2016-03-07 15:53:10.355000"], ["updated_at", "2016-03-07 15:53:10.355000"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:53:10.357655"], ["updated_at", "2016-03-07 15:53:10.357655"]]  (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", "2016-03-07 15:53:10.360745"], ["updated_at", "2016-03-07 15:53:10.360745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:10.362316"], ["updated_at", "2016-03-07 15:53:10.362316"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.363518"], ["updated_at", "2016-03-07 15:53:10.363518"]]  (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-03-07 15:53:10.364643"], ["updated_at", "2016-03-07 15:53:10.364643"]]  (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-03-07 15:53:10.366212"], ["updated_at", "2016-03-07 15:53:10.366212"]]  (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-03-07 15:53:10.367976"], ["updated_at", "2016-03-07 15:53:10.367976"]]  (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 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.2ms) INSERT INTO "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-03-07 15:53:10.373894"], ["updated_at", "2016-03-07 15:53:10.373894"]]  (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", "2016-03-07 15:53:10.376689"], ["updated_at", "2016-03-07 15:53:10.376689"]]  (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-03-07 15:53:10.379921"], ["updated_at", "2016-03-07 15:53:10.379921"]]  (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", "2016-03-07 15:53:10.383375"], ["updated_at", "2016-03-07 15:53:10.383375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:10.385029"], ["updated_at", "2016-03-07 15:53:10.385029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:53:10.386196"], ["updated_at", "2016-03-07 15:53:10.386196"]]  (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-03-07 15:53:10.387491"], ["updated_at", "2016-03-07 15:53:10.387491"]]  (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) 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", "2016-03-07 15:53:10.400504"], ["updated_at", "2016-03-07 15:53:10.400504"]]  (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.2ms) INSERT INTO "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-03-07 15:53:10.403879"], ["updated_at", "2016-03-07 15:53:10.403879"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-07 15:53:10.405668"], ["updated_at", "2016-03-07 15:53:10.405668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.406921"], ["updated_at", "2016-03-07 15:53:10.406921"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 49"], ["key", "Key 49"], ["secret", "Account 49"], ["canvas_account_id", "48"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:10.413471"], ["updated_at", "2016-03-07 15:53:10.413471"]]  (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", "2016-03-07 15:53:10.417344"], ["updated_at", "2016-03-07 15:53:10.417344"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-07 15:53:10.419172"], ["updated_at", "2016-03-07 15:53:10.419172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.420343"], ["updated_at", "2016-03-07 15:53:10.420343"]]  (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", "2016-03-07 15:53:10.424912"], ["updated_at", "2016-03-07 15:53:10.424912"]]  (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 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-03-07 15:53:10.428115"], ["updated_at", "2016-03-07 15:53:10.428115"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2016-03-07 15:53:10.430083"], ["updated_at", "2016-03-07 15:53:10.430083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.431348"], ["updated_at", "2016-03-07 15:53:10.431348"]]  (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", "2016-03-07 15:53:10.433246"], ["updated_at", "2016-03-07 15:53:10.433246"]]  (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-03-07 15:53:10.435180"], ["updated_at", "2016-03-07 15:53:10.435180"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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", "2016-03-07 15:53:10.440228"], ["updated_at", "2016-03-07 15:53:10.440228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "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-03-07 15:53:10.443214"], ["updated_at", "2016-03-07 15:53:10.443214"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-03-07 15:53:10.444883"], ["updated_at", "2016-03-07 15:53:10.444883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.446179"], ["updated_at", "2016-03-07 15:53:10.446179"]]  (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", "2016-03-07 15:53:10.517891"], ["updated_at", "2016-03-07 15:53:10.517891"]]  (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", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2016-03-07 15:53:10.520099"], ["updated_at", "2016-03-07 15:53:10.520099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:10.523490"], ["updated_at", "2016-03-07 15:53:10.523490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:10.526062"], ["updated_at", "2016-03-07 15:53:10.526062"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:10.527535"], ["updated_at", "2016-03-07 15:53:10.527535"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.528641"], ["updated_at", "2016-03-07 15:53:10.528641"]]  (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", "2016-03-07 15:53:10.529727"], ["updated_at", "2016-03-07 15:53:10.529727"]]  (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 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.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 58"], ["key", "Key 58"], ["secret", "Account 58"], ["canvas_account_id", "57"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:10.536343"], ["updated_at", "2016-03-07 15:53:10.536343"]]  (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-03-07 15:53:10.539125"], ["updated_at", "2016-03-07 15:53:10.539125"]]  (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", "2016-03-07 15:53:10.542288"], ["updated_at", "2016-03-07 15:53:10.542288"]]  (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", "2016-03-07 15:53:10.545790"], ["updated_at", "2016-03-07 15:53:10.545790"]]  (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", "2016-03-07 15:53:10.547617"], ["updated_at", "2016-03-07 15:53:10.547617"]]  (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", "21"], ["created_at", "2016-03-07 15:53:10.549007"], ["updated_at", "2016-03-07 15:53:10.549007"]]  (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-03-07 15:53:10.550338"], ["updated_at", "2016-03-07 15:53:10.550338"]]  (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-03-07 15:53:10.556808"], ["updated_at", "2016-03-07 15:53:10.556808"]]  (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-03-07 15:53:10.559004"], ["updated_at", "2016-03-07 15:53:10.559004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:10.561602"], ["updated_at", "2016-03-07 15:53:10.561602"]]  (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 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", "2016-03-07 15:53:10.565657"], ["updated_at", "2016-03-07 15:53:10.565657"]]  (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", "26"], ["created_at", "2016-03-07 15:53:10.568134"], ["updated_at", "2016-03-07 15:53:10.568134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.569689"], ["updated_at", "2016-03-07 15:53:10.569689"]]  (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-03-07 15:53:10.571196"], ["updated_at", "2016-03-07 15:53:10.571196"]]  (0.0ms) RELEASE 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 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-03-07 15:53:10.577346"], ["updated_at", "2016-03-07 15:53:10.577346"]]  (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", "2016-03-07 15:53:10.579733"], ["updated_at", "2016-03-07 15:53:10.579733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:53:10.582504"], ["updated_at", "2016-03-07 15:53:10.582504"]]  (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", "2016-03-07 15:53:10.586149"], ["updated_at", "2016-03-07 15:53:10.586149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:10.588541"], ["updated_at", "2016-03-07 15:53:10.588541"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:53:10.590086"], ["updated_at", "2016-03-07 15:53:10.590086"]]  (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-03-07 15:53:10.591556"], ["updated_at", "2016-03-07 15:53:10.591556"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:53:10.593665"], ["updated_at", "2016-03-07 15:53:10.593665"]]  (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", "2016-03-07 15:53:10.597568"], ["updated_at", "2016-03-07 15:53:10.597568"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO 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 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:53:10.604317"], ["updated_at", "2016-03-07 15:53:10.604317"]]  (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-03-07 15:53:10.606713"], ["updated_at", "2016-03-07 15:53:10.606713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:53:10.609385"], ["updated_at", "2016-03-07 15:53:10.609385"]]  (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.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", "2016-03-07 15:53:10.612741"], ["updated_at", "2016-03-07 15:53:10.612741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:10.615044"], ["updated_at", "2016-03-07 15:53:10.615044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.616632"], ["updated_at", "2016-03-07 15:53:10.616632"]]  (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-03-07 15:53:10.618201"], ["updated_at", "2016-03-07 15:53:10.618201"]]  (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", "1"], ["created_at", "2016-03-07 15:53:10.620459"], ["updated_at", "2016-03-07 15:53:10.620459"]]  (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-03-07 15:53:10.622748"], ["updated_at", "2016-03-07 15:53:10.622748"]]  (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 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", "2016-03-07 15:53:10.628333"], ["updated_at", "2016-03-07 15:53:10.628333"]]  (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-03-07 15:53:10.630426"], ["updated_at", "2016-03-07 15:53:10.630426"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:53:10.633168"], ["updated_at", "2016-03-07 15:53:10.633168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:10.635913"], ["updated_at", "2016-03-07 15:53:10.635913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:10.637442"], ["updated_at", "2016-03-07 15:53:10.637442"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:53:10.638623"], ["updated_at", "2016-03-07 15:53:10.638623"]]  (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-03-07 15:53:10.639713"], ["updated_at", "2016-03-07 15:53:10.639713"]]  (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-03-07 15:53:10.646335"], ["updated_at", "2016-03-07 15:53:10.646335"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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.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", "2016-03-07 15:53:10.653172"], ["updated_at", "2016-03-07 15:53:10.653172"]]  (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-03-07 15:53:10.655773"], ["updated_at", "2016-03-07 15:53:10.655773"]]  (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-03-07 15:53:10.657756"], ["updated_at", "2016-03-07 15:53:10.657756"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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.0ms) SAVEPOINT 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-03-07 15:53:10.664539"], ["updated_at", "2016-03-07 15:53:10.664539"]]  (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.2ms) 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", "2016-03-07 15:53:10.671161"], ["updated_at", "2016-03-07 15:53:10.671161"]]  (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-03-07 15:53:10.677616"], ["updated_at", "2016-03-07 15:53:10.677616"]]  (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-03-07 15:53:10.680567"], ["updated_at", "2016-03-07 15:53:10.680567"]]  (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", "2016-03-07 15:53:10.682682"], ["updated_at", "2016-03-07 15:53:10.682682"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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.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 78"], ["key", "Key 78"], ["secret", "Account 78"], ["canvas_account_id", "77"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:10.686938"], ["updated_at", "2016-03-07 15:53:10.686938"]]  (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.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 79"], ["key", "Key 79"], ["secret", "Account 79"], ["canvas_account_id", "78"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:10.693247"], ["updated_at", "2016-03-07 15:53:10.693247"]]  (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", "2016-03-07 15:53:10.708237"], ["updated_at", "2016-03-07 15:53:10.708237"]]  (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-03-07 15:53:10.710625"], ["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", "2016-03-07 15:53:10.717111"], ["updated_at", "2016-03-07 15:53:10.717111"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:53:10.720718"], ["updated_at", "2016-03-07 15:53:10.720718"]]  (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-03-07 15:53:10.722383"], ["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-03-07 15:53:10.727880"], ["updated_at", "2016-03-07 15:53:10.727880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:53:10.731323"], ["updated_at", "2016-03-07 15:53:10.731323"]]  (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", "2016-03-07 15:53:10.789171"], ["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", "2016-03-07 15:53:10.804796"], ["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", "2016-03-07 15:53:10.810312"], ["updated_at", "2016-03-07 15:53:10.810312"]]  (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 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-03-07 15:53:10.813457"], ["updated_at", "2016-03-07 15:53:10.813457"]]  (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", "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-03-07 15:53:10.816441"], ["updated_at", "2016-03-07 15:53:10.816441"]]  (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", "2016-03-07 15:53:10.819198"], ["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-03-07 15:53:10.820609"], ["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", "2016-03-07 15:53:10.826321"], ["updated_at", "2016-03-07 15:53:10.826321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:53:10.829398"], ["updated_at", "2016-03-07 15:53:10.829398"]]  (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-03-07 15:53:10.830849"], ["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-03-07 15:53:10.834534"], ["updated_at", "2016-03-07 15:53:10.834534"]]  (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", "2016-03-07 15:53:10.836694"], ["updated_at", "2016-03-07 15:53:10.836694"]]  (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", "2016-03-07 15:53:10.842602"], ["updated_at", "2016-03-07 15:53:10.842602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:53:10.845603"], ["updated_at", "2016-03-07 15:53:10.845603"]]  (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-03-07 15:53:10.847213"], ["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", "2016-03-07 15:53:10.849398"], ["updated_at", "2016-03-07 15:53:10.849398"]]  (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-03-07 15:53:10.851202"], ["updated_at", "2016-03-07 15:53:10.851202"]]  (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-03-07 15:53:10.852870"], ["updated_at", "2016-03-07 15:53:10.852870"]]  (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.1ms) 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.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-03-07 15:53:10.860152"], ["updated_at", "2016-03-07 15:53:10.860152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:53:10.863638"], ["updated_at", "2016-03-07 15:53:10.863638"]]  (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-03-07 15:53:10.865055"], ["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", "2016-03-07 15:53:10.870438"], ["updated_at", "2016-03-07 15:53:10.870438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:53:10.873928"], ["updated_at", "2016-03-07 15:53:10.873928"]]  (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-03-07 15:53:10.875310"], ["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", "2016-03-07 15:53:10.881741"], ["updated_at", "2016-03-07 15:53:10.881741"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:53:10.885092"], ["updated_at", "2016-03-07 15:53:10.885092"]]  (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-03-07 15:53:10.886442"], ["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", "2016-03-07 15:53:10.888869"], ["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", "2016-03-07 15:53:10.897925"], ["updated_at", "2016-03-07 15:53:10.897925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:10.901113"], ["updated_at", "2016-03-07 15:53:10.901113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:10.902847"], ["updated_at", "2016-03-07 15:53:10.902847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2016-03-07 15:53:10.904030"], ["updated_at", "2016-03-07 15:53:10.904030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:10.906730"], ["updated_at", "2016-03-07 15:53:10.906730"]]  (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-03-07 15:53:10.908191"], ["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.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", "2016-03-07 15:53:10.915632"], ["updated_at", "2016-03-07 15:53:10.915632"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 90"], ["key", "Key 90"], ["secret", "Account 90"], ["canvas_account_id", "89"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:10.918798"], ["updated_at", "2016-03-07 15:53:10.918798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:10.920641"], ["updated_at", "2016-03-07 15:53:10.920641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-07 15:53:10.921854"], ["updated_at", "2016-03-07 15:53:10.921854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:10.924260"], ["updated_at", "2016-03-07 15:53:10.924260"]]  (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-03-07 15:53:10.925600"], ["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-03-07 15:53:10.932843"], ["updated_at", "2016-03-07 15:53:10.932843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:10.935926"], ["updated_at", "2016-03-07 15:53:10.935926"]]  (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", "2016-03-07 15:53:10.937789"], ["updated_at", "2016-03-07 15:53:10.937789"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.939713"], ["updated_at", "2016-03-07 15:53:10.939713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:10.942750"], ["updated_at", "2016-03-07 15:53:10.942750"]]  (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", "2016-03-07 15:53:10.944422"], ["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.2ms) 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", "2016-03-07 15:53:10.952740"], ["updated_at", "2016-03-07 15:53:10.952740"]]  (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 94' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:53:10.957904"], ["updated_at", "2016-03-07 15:53:10.957904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:10.960101"], ["updated_at", "2016-03-07 15:53:10.960101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2016-03-07 15:53:10.961486"], ["updated_at", "2016-03-07 15:53:10.961486"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:10.964217"], ["updated_at", "2016-03-07 15:53:10.964217"]]  (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-03-07 15:53:10.965650"], ["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", "2016-03-07 15:53:10.972916"], ["updated_at", "2016-03-07 15:53:10.972916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:10.976152"], ["updated_at", "2016-03-07 15:53:10.976152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-03-07 15:53:10.978401"], ["updated_at", "2016-03-07 15:53:10.978401"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:10.979680"], ["updated_at", "2016-03-07 15:53:10.979680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:10.982397"], ["updated_at", "2016-03-07 15:53:10.982397"]]  (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-03-07 15:53:10.983824"], ["id", 1]]  (0.1ms) 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-03-07 15:53:10.994316"], ["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-03-07 15:53:10.999030"], ["updated_at", "2016-03-07 15:53:10.999030"]]  (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.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", 12.5], ["updated_at", "2016-03-07 15:53:11.001738"], ["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-03-07 15:53:11.005354"], ["updated_at", "2016-03-07 15:53:11.005354"]]  (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-03-07 15:53:11.007299"], ["updated_at", "2016-03-07 15:53:11.007299"]]  (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-03-07 15:53:11.065812"], ["updated_at", "2016-03-07 15:53:11.065812"]]  (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", "2016-03-07 15:53:11.076311"], ["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.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]]  (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-03-07 15:53:11.093373"], ["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.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", "2016-03-07 15:53:11.098228"], ["updated_at", "2016-03-07 15:53:11.098228"]]  (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-03-07 15:53:11.101588"], ["id", 1]]  (0.0ms) 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"."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", "2016-03-07 15:53:11.122228"], ["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", "2016-03-07 15:53:11.125018"], ["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", "2016-03-07 15:53:11.137842"], ["updated_at", "2016-03-07 15:53:11.137842"]]  (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-03-07 15:53:11.140691"], ["updated_at", "2016-03-07 15:53:11.140691"]]  (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", "2016-03-07 15:53:11.142357"], ["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.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" = ? 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.6ms) INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2016-03-07 15:53:11.156781"], ["updated_at", "2016-03-07 15:53:11.156781"]]  (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.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.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"]]  (0.1ms) 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-03-07 15:53:11.162329"], ["updated_at", "2016-03-07 15:53:11.162329"]]  (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", "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 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-03-07 15:53:11.170560"], ["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-03-07 15:53:11.171927"], ["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 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", "2016-03-07 15:53:11.180361"], ["updated_at", "2016-03-07 15:53:11.180361"]]  (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.1ms) 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", "2016-03-07 15:53:11.183884"], ["updated_at", "2016-03-07 15:53:11.183884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:11.186306"], ["updated_at", "2016-03-07 15:53:11.186306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-03-07 15:53:11.187599"], ["updated_at", "2016-03-07 15:53:11.187599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.190668"], ["updated_at", "2016-03-07 15:53:11.190668"]]  (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-03-07 15:53:11.192444"], ["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-03-07 15:53:11.195058"], ["updated_at", "2016-03-07 15:53:11.195058"]]  (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.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", "2016-03-07 15:53:11.203409"], ["updated_at", "2016-03-07 15:53:11.203409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:53:11.206960"], ["updated_at", "2016-03-07 15:53:11.206960"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:11.209372"], ["updated_at", "2016-03-07 15:53:11.209372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-07 15:53:11.210660"], ["updated_at", "2016-03-07 15:53:11.210660"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.213216"], ["updated_at", "2016-03-07 15:53:11.213216"]]  (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-03-07 15:53:11.214573"], ["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", "2016-03-07 15:53:11.216899"], ["updated_at", "2016-03-07 15:53:11.216899"]]  (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-03-07 15:53:11.218799"], ["updated_at", "2016-03-07 15:53:11.218799"]]  (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-03-07 15:53:11.220433"], ["updated_at", "2016-03-07 15:53:11.220433"]]  (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.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.6ms) 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.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", "2016-03-07 15:53:11.229819"], ["updated_at", "2016-03-07 15:53:11.229819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:53:11.232982"], ["updated_at", "2016-03-07 15:53:11.232982"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:11.234798"], ["updated_at", "2016-03-07 15:53:11.234798"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-07 15:53:11.236181"], ["updated_at", "2016-03-07 15:53:11.236181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.239021"], ["updated_at", "2016-03-07 15:53:11.239021"]]  (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-03-07 15:53:11.240787"], ["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.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-03-07 15:53:11.299120"], ["updated_at", "2016-03-07 15:53:11.299120"]]  (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-03-07 15:53:11.301545"], ["updated_at", "2016-03-07 15:53:11.301545"]]  (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-03-07 15:53:11.303091"], ["updated_at", "2016-03-07 15:53:11.303091"]]  (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", "2016-03-07 15:53:11.304618"], ["updated_at", "2016-03-07 15:53:11.304618"]]  (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.0ms) SAVEPOINT 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", "2016-03-07 15:53:11.324364"], ["updated_at", "2016-03-07 15:53:11.324364"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:11.327421"], ["updated_at", "2016-03-07 15:53:11.327421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-07 15:53:11.329181"], ["updated_at", "2016-03-07 15:53:11.329181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:11.330324"], ["updated_at", "2016-03-07 15:53:11.330324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.332775"], ["updated_at", "2016-03-07 15:53:11.332775"]]  (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-03-07 15:53:11.334180"], ["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", "2016-03-07 15:53:11.340559"], ["updated_at", "2016-03-07 15:53:11.340559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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.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-03-07 15:53:11.348690"], ["updated_at", "2016-03-07 15:53:11.348690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:11.351603"], ["updated_at", "2016-03-07 15:53:11.351603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:11.353302"], ["updated_at", "2016-03-07 15:53:11.353302"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2016-03-07 15:53:11.354801"], ["updated_at", "2016-03-07 15:53:11.354801"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.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", "2016-03-07 15:53:11.357301"], ["updated_at", "2016-03-07 15:53:11.357301"]]  (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-03-07 15:53:11.359242"], ["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-03-07 15:53:11.361501"], ["updated_at", "2016-03-07 15:53:11.361501"]]  (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", "2016-03-07 15:53:11.379904"], ["updated_at", "2016-03-07 15:53:11.379904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "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-03-07 15:53:11.382971"], ["updated_at", "2016-03-07 15:53:11.382971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-07 15:53:11.384748"], ["updated_at", "2016-03-07 15:53:11.384748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:11.385873"], ["updated_at", "2016-03-07 15:53:11.385873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.388292"], ["updated_at", "2016-03-07 15:53:11.388292"]]  (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-03-07 15:53:11.389610"], ["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-03-07 15:53:11.391643"], ["updated_at", "2016-03-07 15:53:11.391643"]]  (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.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-03-07 15:53:11.399082"], ["updated_at", "2016-03-07 15:53:11.399082"]]  (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.2ms) INSERT INTO "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-03-07 15:53:11.402332"], ["updated_at", "2016-03-07 15:53:11.402332"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2016-03-07 15:53:11.404208"], ["updated_at", "2016-03-07 15:53:11.404208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:11.405396"], ["updated_at", "2016-03-07 15:53:11.405396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.407777"], ["updated_at", "2016-03-07 15:53:11.407777"]]  (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-03-07 15:53:11.409058"], ["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-03-07 15:53:11.411343"], ["updated_at", "2016-03-07 15:53:11.411343"]]  (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-03-07 15:53:11.413423"], ["updated_at", "2016-03-07 15:53:11.413423"]]  (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-03-07 15:53:11.414961"], ["updated_at", "2016-03-07 15:53:11.414961"]]  (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", "2016-03-07 15:53:11.416561"], ["updated_at", "2016-03-07 15:53:11.416561"]]  (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.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-03-07 15:53:11.442272"], ["updated_at", "2016-03-07 15:53:11.442272"]]  (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", "2016-03-07 15:53:11.445309"], ["updated_at", "2016-03-07 15:53:11.445309"]]  (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", "2016-03-07 15:53:11.448159"], ["updated_at", "2016-03-07 15:53:11.448159"]]  (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", "2016-03-07 15:53:11.451229"], ["updated_at", "2016-03-07 15:53:11.451229"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (2.3ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Group Load (0.1ms) 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 111' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:53:11.461246"], ["updated_at", "2016-03-07 15:53:11.461246"]]  (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.1ms) 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-03-07 15:53:11.465790"], ["updated_at", "2016-03-07 15:53:11.465790"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-03-07 15:53:11.468009"], ["updated_at", "2016-03-07 15:53:11.468009"]]  (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", "38"], ["created_at", "2016-03-07 15:53:11.469985"], ["updated_at", "2016-03-07 15:53:11.469985"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.473237"], ["updated_at", "2016-03-07 15:53:11.473237"]]  (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-03-07 15:53:11.474939"], ["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", "2016-03-07 15:53:11.532707"], ["updated_at", "2016-03-07 15:53:11.532707"]]  (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-03-07 15:53:11.536321"], ["updated_at", "2016-03-07 15:53:11.536321"]]  (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-03-07 15:53:11.538608"], ["updated_at", "2016-03-07 15:53:11.538608"]]  (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.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 113' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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-03-07 15:53:11.547187"], ["updated_at", "2016-03-07 15:53:11.547187"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "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-03-07 15:53:11.550337"], ["updated_at", "2016-03-07 15:53:11.550337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2016-03-07 15:53:11.552192"], ["updated_at", "2016-03-07 15:53:11.552192"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:11.553381"], ["updated_at", "2016-03-07 15:53:11.553381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.556455"], ["updated_at", "2016-03-07 15:53:11.556455"]]  (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-03-07 15:53:11.558418"], ["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-03-07 15:53:11.561346"], ["updated_at", "2016-03-07 15:53:11.561346"]]  (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-03-07 15:53:11.563898"], ["updated_at", "2016-03-07 15:53:11.563898"]]  (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-03-07 15:53:11.565654"], ["updated_at", "2016-03-07 15:53:11.565654"]]  (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", "2016-03-07 15:53:11.567269"], ["updated_at", "2016-03-07 15:53:11.567269"]]  (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.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::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-03-07 15:53:11.582932"], ["updated_at", "2016-03-07 15:53:11.582932"]]  (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", "2016-03-07 15:53:11.585079"], ["updated_at", "2016-03-07 15:53:11.585079"]]  (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.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", "2016-03-07 15:53:11.594936"], ["updated_at", "2016-03-07 15:53:11.594936"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:11.597856"], ["updated_at", "2016-03-07 15:53:11.597856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:11.599619"], ["updated_at", "2016-03-07 15:53:11.599619"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-03-07 15:53:11.600767"], ["updated_at", "2016-03-07 15:53:11.600767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.603292"], ["updated_at", "2016-03-07 15:53:11.603292"]]  (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-03-07 15:53:11.604579"], ["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-03-07 15:53:11.608203"], ["updated_at", "2016-03-07 15:53:11.608203"]]  (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-03-07 15:53:11.610513"], ["updated_at", "2016-03-07 15:53:11.610513"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.7ms) 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", "2016-03-07 15:53:11.618003"], ["updated_at", "2016-03-07 15:53:11.618003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:11.620842"], ["updated_at", "2016-03-07 15:53:11.620842"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:11.622438"], ["updated_at", "2016-03-07 15:53:11.622438"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-07 15:53:11.623602"], ["updated_at", "2016-03-07 15:53:11.623602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.626213"], ["updated_at", "2016-03-07 15:53:11.626213"]]  (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-03-07 15:53:11.627538"], ["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-03-07 15:53:11.629610"], ["updated_at", "2016-03-07 15:53:11.629610"]]  (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-03-07 15:53:11.631813"], ["updated_at", "2016-03-07 15:53:11.631813"]]  (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-03-07 15:53:11.633314"], ["updated_at", "2016-03-07 15:53:11.633314"]]  (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", "2016-03-07 15:53:11.634776"], ["updated_at", "2016-03-07 15:53:11.634776"]]  (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", "2016-03-07 15:53:11.649257"], ["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.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 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-03-07 15:53:11.665158"], ["updated_at", "2016-03-07 15:53:11.665158"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:11.667982"], ["updated_at", "2016-03-07 15:53:11.667982"]]  (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", "47"], ["created_at", "2016-03-07 15:53:11.669599"], ["updated_at", "2016-03-07 15:53:11.669599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:11.671007"], ["updated_at", "2016-03-07 15:53:11.671007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.673523"], ["updated_at", "2016-03-07 15:53:11.673523"]]  (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-03-07 15:53:11.675200"], ["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-03-07 15:53:11.678148"], ["updated_at", "2016-03-07 15:53:11.678148"]]  (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-03-07 15:53:11.680830"], ["updated_at", "2016-03-07 15:53:11.680830"]]  (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-03-07 15:53:11.682668"], ["updated_at", "2016-03-07 15:53:11.682668"]]  (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", "2016-03-07 15:53:11.684311"], ["updated_at", "2016-03-07 15:53:11.684311"]]  (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.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.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", "2"], ["coalescing_panda_user_id", 2], ["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.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.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.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", "2016-03-07 15:53:11.700268"], ["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.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  (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.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 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-03-07 15:53:11.716971"], ["updated_at", "2016-03-07 15:53:11.716971"]]  (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 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", "2016-03-07 15:53:11.779216"], ["updated_at", "2016-03-07 15:53:11.779216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-07 15:53:11.781285"], ["updated_at", "2016-03-07 15:53:11.781285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:11.782489"], ["updated_at", "2016-03-07 15:53:11.782489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.784969"], ["updated_at", "2016-03-07 15:53:11.784969"]]  (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-03-07 15:53:11.786382"], ["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-03-07 15:53:11.788696"], ["updated_at", "2016-03-07 15:53:11.788696"]]  (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-03-07 15:53:11.790963"], ["updated_at", "2016-03-07 15:53:11.790963"]]  (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-03-07 15:53:11.792630"], ["updated_at", "2016-03-07 15:53:11.792630"]]  (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", "2016-03-07 15:53:11.794102"], ["updated_at", "2016-03-07 15:53:11.794102"]]  (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- :users\n"], ["updated_at", "2016-03-07 15:53:11.808363"], ["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.5ms) 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 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-03-07 15:53:11.825730"], ["updated_at", "2016-03-07 15:53:11.825730"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:11.829166"], ["updated_at", "2016-03-07 15:53:11.829166"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:11.830883"], ["updated_at", "2016-03-07 15:53:11.830883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2016-03-07 15:53:11.831981"], ["updated_at", "2016-03-07 15:53:11.831981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.834543"], ["updated_at", "2016-03-07 15:53:11.834543"]]  (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-03-07 15:53:11.835972"], ["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-03-07 15:53:11.838159"], ["updated_at", "2016-03-07 15:53:11.838159"]]  (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-03-07 15:53:11.840239"], ["updated_at", "2016-03-07 15:53:11.840239"]]  (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 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-03-07 15:53:11.842800"], ["updated_at", "2016-03-07 15:53:11.842800"]]  (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", "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-03-07 15:53:11.845540"], ["updated_at", "2016-03-07 15:53:11.845540"]]  (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", "2016-03-07 15:53:11.862694"], ["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.2ms) UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2016-03-07 15:53:11.868090"], ["id", 1]]  (0.1ms) 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.1ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.1ms) 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"]]  (2.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 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.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", "2016-03-07 15:53:11.883890"], ["updated_at", "2016-03-07 15:53:11.883890"]]  (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", "2016-03-07 15:53:11.888990"], ["updated_at", "2016-03-07 15:53:11.888990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-03-07 15:53:11.891257"], ["updated_at", "2016-03-07 15:53:11.891257"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:11.892685"], ["updated_at", "2016-03-07 15:53:11.892685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.895525"], ["updated_at", "2016-03-07 15:53:11.895525"]]  (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-03-07 15:53:11.897063"], ["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", "2016-03-07 15:53:11.904333"], ["updated_at", "2016-03-07 15:53:11.904333"]]  (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", "2016-03-07 15:53:11.907349"], ["updated_at", "2016-03-07 15:53:11.907349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:11.909069"], ["updated_at", "2016-03-07 15:53:11.909069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2016-03-07 15:53:11.910295"], ["updated_at", "2016-03-07 15:53:11.910295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.912905"], ["updated_at", "2016-03-07 15:53:11.912905"]]  (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-03-07 15:53:11.914256"], ["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.2ms) 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-03-07 15:53:11.922695"], ["updated_at", "2016-03-07 15:53:11.922695"]]  (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.2ms) INSERT INTO "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-03-07 15:53:11.926580"], ["updated_at", "2016-03-07 15:53:11.926580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2016-03-07 15:53:11.928419"], ["updated_at", "2016-03-07 15:53:11.928419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:11.929615"], ["updated_at", "2016-03-07 15:53:11.929615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.932084"], ["updated_at", "2016-03-07 15:53:11.932084"]]  (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-03-07 15:53:11.933474"], ["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.2ms) INSERT INTO "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-03-07 15:53:11.941913"], ["updated_at", "2016-03-07 15:53:11.941913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:11.944820"], ["updated_at", "2016-03-07 15:53:11.944820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:11.946427"], ["updated_at", "2016-03-07 15:53:11.946427"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-07 15:53:11.947583"], ["updated_at", "2016-03-07 15:53:11.947583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.950258"], ["updated_at", "2016-03-07 15:53:11.950258"]]  (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-03-07 15:53:11.951789"], ["id", 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 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", "2016-03-07 15:53:11.960562"], ["updated_at", "2016-03-07 15:53:11.960562"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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 134"], ["key", "Key 134"], ["secret", "Account 134"], ["canvas_account_id", "133"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:11.963798"], ["updated_at", "2016-03-07 15:53:11.963798"]]  (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", "54"], ["created_at", "2016-03-07 15:53:11.966854"], ["updated_at", "2016-03-07 15:53:11.966854"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:11.968688"], ["updated_at", "2016-03-07 15:53:11.968688"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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", "2016-03-07 15:53:11.972418"], ["updated_at", "2016-03-07 15:53:11.972418"]]  (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-03-07 15:53:11.974248"], ["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", "2016-03-07 15:53:11.982204"], ["updated_at", "2016-03-07 15:53:11.982204"]]  (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", "2016-03-07 15:53:11.985334"], ["updated_at", "2016-03-07 15:53:11.985334"]]  (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", "55"], ["created_at", "2016-03-07 15:53:11.987338"], ["updated_at", "2016-03-07 15:53:11.987338"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-03-07 15:53:11.988513"], ["updated_at", "2016-03-07 15:53:11.988513"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:11.990900"], ["updated_at", "2016-03-07 15:53:11.990900"]]  (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-03-07 15:53:11.992188"], ["id", 1]]  (0.1ms) 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 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", "2016-03-07 15:53:12.063644"], ["updated_at", "2016-03-07 15:53:12.063644"]]  (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 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", "2016-03-07 15:53:12.068347"], ["updated_at", "2016-03-07 15:53:12.068347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-07 15:53:12.070914"], ["updated_at", "2016-03-07 15:53:12.070914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:12.072850"], ["updated_at", "2016-03-07 15:53:12.072850"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:12.076160"], ["updated_at", "2016-03-07 15:53:12.076160"]]  (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-03-07 15:53:12.078462"], ["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 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", "2016-03-07 15:53:12.087189"], ["updated_at", "2016-03-07 15:53:12.087189"]]  (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", "2016-03-07 15:53:12.091232"], ["updated_at", "2016-03-07 15:53:12.091232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:12.093139"], ["updated_at", "2016-03-07 15:53:12.093139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2016-03-07 15:53:12.094407"], ["updated_at", "2016-03-07 15:53:12.094407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:12.097367"], ["updated_at", "2016-03-07 15:53:12.097367"]]  (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-03-07 15:53:12.099094"], ["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  (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", "2016-03-07 15:53:12.109036"], ["updated_at", "2016-03-07 15:53:12.109036"]]  (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", "2016-03-07 15:53:12.112319"], ["updated_at", "2016-03-07 15:53:12.112319"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:12.114521"], ["updated_at", "2016-03-07 15:53:12.114521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-03-07 15:53:12.115777"], ["updated_at", "2016-03-07 15:53:12.115777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:53:12.118201"], ["updated_at", "2016-03-07 15:53:12.118201"]]  (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-03-07 15:53:12.119519"], ["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", "2016-03-07 15:53:12.122478"], ["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.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 2ms (ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.9ms) 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-03-07 15:53:59.308726"], ["updated_at", "2016-03-07 15:53:59.308726"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:53:59.330054"], ["updated_at", "2016-03-07 15:53:59.330054"]]  (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", "2016-03-07 16:53:59.352555"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:53:59.353944"], ["updated_at", "2016-03-07 15:53:59.353944"]]  (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 28ms (Views: 7.9ms | ActiveRecord: 1.0ms) CoalescingPanda::CanvasApiAuth Load (0.2ms) 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.8ms | ActiveRecord: 0.0ms)  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (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) SAVEPOINT 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-03-07 15:53:59.390682"], ["updated_at", "2016-03-07 15:53:59.390682"]]  (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 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", "2016-03-07 15:53:59.447307"], ["updated_at", "2016-03-07 15:53:59.447307"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", "2016-03-07 15:53:59.450103"], ["updated_at", "2016-03-07 15:53:59.450103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:53:59.452634"], ["updated_at", "2016-03-07 15:53:59.452634"]]  (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 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-03-07 15:53:59.466651"], ["updated_at", "2016-03-07 15:53:59.466651"]]  (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.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' 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 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:59.470403"], ["updated_at", "2016-03-07 15:53:59.470403"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:59.472680"], ["updated_at", "2016-03-07 15:53:59.472680"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-03-07 15:53:59.474369"], ["updated_at", "2016-03-07 15:53:59.474369"]]  (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.1ms) 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-03-07 15:53:59.480503"], ["updated_at", "2016-03-07 15:53:59.480503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) 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", "2016-03-07 15:53:59.483531"], ["updated_at", "2016-03-07 15:53:59.483531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:59.485301"], ["updated_at", "2016-03-07 15:53:59.485301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-07 15:53:59.486438"], ["updated_at", "2016-03-07 15:53:59.486438"]]  (0.1ms) 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.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-03-07 15:53:59.506359"], ["updated_at", "2016-03-07 15:53:59.506359"]]  (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-03-07 15:53:59.510498"], ["updated_at", "2016-03-07 15:53:59.510498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:59.512796"], ["updated_at", "2016-03-07 15:53:59.512796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-03-07 15:53:59.514213"], ["updated_at", "2016-03-07 15:53:59.514213"]]  (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.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", "2016-03-07 15:53:59.521838"], ["updated_at", "2016-03-07 15:53:59.521838"]]  (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 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.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 11"], ["key", "Key 11"], ["secret", "Account 11"], ["canvas_account_id", "11"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:59.526269"], ["updated_at", "2016-03-07 15:53:59.526269"]]  (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", "5"], ["created_at", "2016-03-07 15:53:59.529248"], ["updated_at", "2016-03-07 15:53:59.529248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-03-07 15:53:59.530764"], ["updated_at", "2016-03-07 15:53:59.530764"]]  (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-03-07 15:53:59.536071"], ["updated_at", "2016-03-07 15:53:59.536071"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:59.539130"], ["updated_at", "2016-03-07 15:53:59.539130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:59.540932"], ["updated_at", "2016-03-07 15:53:59.540932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-03-07 15:53:59.542375"], ["updated_at", "2016-03-07 15:53:59.542375"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:53:59.544318"], ["updated_at", "2016-03-07 15:53:59.544318"]]  (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", "2016-03-07 15:53:59.549131"], ["updated_at", "2016-03-07 15:53:59.549131"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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 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", "2016-03-07 15:53:59.554939"], ["updated_at", "2016-03-07 15:53:59.554939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:59.558060"], ["updated_at", "2016-03-07 15:53:59.558060"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:59.559878"], ["updated_at", "2016-03-07 15:53:59.559878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-03-07 15:53:59.561107"], ["updated_at", "2016-03-07 15:53:59.561107"]]  (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", "2016-03-07 15:53:59.568523"], ["updated_at", "2016-03-07 15:53:59.568523"]]  (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.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 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-03-08 15:53:59.581942"], ["created_at", "2016-03-07 15:53:59.583023"], ["updated_at", "2016-03-07 15:53:59.583023"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:53:59.592432"], ["updated_at", "2016-03-07 15:53:59.592432"]]  (0.1ms) 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", "2016-03-07 15:53:59.595149"], ["updated_at", "2016-03-07 15:53:59.595149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:53:59.596820"], ["updated_at", "2016-03-07 15:53:59.596820"]]  (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.1ms) 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 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:53:59.607906"], ["updated_at", "2016-03-07 15:53:59.607906"]]  (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", "2016-03-07 15:53:59.612267"], ["updated_at", "2016-03-07 15:53:59.612267"]]  (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", "8"], ["created_at", "2016-03-07 15:53:59.615026"], ["updated_at", "2016-03-07 15:53:59.615026"]]  (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", "2016-03-07 15:53:59.621975"], ["updated_at", "2016-03-07 15:53:59.621975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:59.625398"], ["updated_at", "2016-03-07 15:53:59.625398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:59.627247"], ["updated_at", "2016-03-07 15:53:59.627247"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:59.631839"], ["updated_at", "2016-03-07 15:53:59.631839"]]  (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.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 21"], ["key", "Key 21"], ["secret", "Account 21"], ["canvas_account_id", "21"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:53:59.636173"], ["updated_at", "2016-03-07 15:53:59.636173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2016-03-07 15:53:59.638827"], ["updated_at", "2016-03-07 15:53:59.638827"]]  (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", "2016-03-07 15:53:59.693880"], ["updated_at", "2016-03-07 15:53:59.693880"]]  (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.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", "2016-03-07 15:53:59.697287"], ["updated_at", "2016-03-07 15:53:59.697287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:59.699174"], ["updated_at", "2016-03-07 15:53:59.699174"]]  (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-03-07 15:53:59.700444"], ["updated_at", "2016-03-07 15:53:59.700444"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:53:59.705219"], ["updated_at", "2016-03-07 15:53:59.705219"]]  (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", "2016-03-07 15:53:59.706987"], ["updated_at", "2016-03-07 15:53:59.706987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:59.709900"], ["updated_at", "2016-03-07 15:53:59.709900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:53:59.712047"], ["updated_at", "2016-03-07 15:53:59.712047"]]  (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", "2016-03-07 15:53:59.715984"], ["updated_at", "2016-03-07 15:53:59.715984"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:53:59.717905"], ["updated_at", "2016-03-07 15:53:59.717905"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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-03-07 15:53:59.722518"], ["updated_at", "2016-03-07 15:53:59.722518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:59.725460"], ["updated_at", "2016-03-07 15:53:59.725460"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:53:59.727116"], ["updated_at", "2016-03-07 15:53:59.727116"]]  (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.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", "2016-03-07 15:53:59.739927"], ["updated_at", "2016-03-07 15:53:59.739927"]]  (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", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2016-03-07 15:53:59.742593"], ["updated_at", "2016-03-07 15:53:59.742593"]]  (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", "2016-03-07 15:53:59.754006"], ["updated_at", "2016-03-07 15:53:59.754006"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:59.757018"], ["updated_at", "2016-03-07 15:53:59.757018"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:59.758726"], ["updated_at", "2016-03-07 15:53:59.758726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:59.759861"], ["updated_at", "2016-03-07 15:53:59.759861"]]  (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-03-07 15:53:59.761672"], ["updated_at", "2016-03-07 15:53:59.761672"]]  (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 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", "2016-03-07 15:53:59.770366"], ["updated_at", "2016-03-07 15:53:59.770366"]]  (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", "2016-03-07 15:53:59.772930"], ["updated_at", "2016-03-07 15:53:59.772930"]]  (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", "2016-03-07 15:53:59.776522"], ["updated_at", "2016-03-07 15:53:59.776522"]]  (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-03-07 15:53:59.779981"], ["updated_at", "2016-03-07 15:53:59.779981"]]  (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", "15"], ["created_at", "2016-03-07 15:53:59.782898"], ["updated_at", "2016-03-07 15:53:59.782898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:53:59.784823"], ["updated_at", "2016-03-07 15:53:59.784823"]]  (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-03-07 15:53:59.786416"], ["updated_at", "2016-03-07 15:53:59.786416"]]  (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.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", "2016-03-07 15:53:59.793593"], ["updated_at", "2016-03-07 15:53:59.793593"]]  (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", "2016-03-07 15:53:59.795959"], ["updated_at", "2016-03-07 15:53:59.795959"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:59.798658"], ["updated_at", "2016-03-07 15:53:59.798658"]]  (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 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", "2016-03-07 15:53:59.801398"], ["updated_at", "2016-03-07 15:53:59.801398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:59.803082"], ["updated_at", "2016-03-07 15:53:59.803082"]]  (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", "12"], ["created_at", "2016-03-07 15:53:59.804377"], ["updated_at", "2016-03-07 15:53:59.804377"]]  (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-03-07 15:53:59.805546"], ["updated_at", "2016-03-07 15:53:59.805546"]]  (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.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", "2016-03-07 15:53:59.811205"], ["updated_at", "2016-03-07 15:53:59.811205"]]  (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", "2016-03-07 15:53:59.813448"], ["updated_at", "2016-03-07 15:53:59.813448"]]  (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", "2016-03-07 15:53:59.816398"], ["updated_at", "2016-03-07 15:53:59.816398"]]  (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 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-03-07 15:53:59.819542"], ["updated_at", "2016-03-07 15:53:59.819542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:59.821009"], ["updated_at", "2016-03-07 15:53:59.821009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:53:59.822106"], ["updated_at", "2016-03-07 15:53:59.822106"]]  (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-03-07 15:53:59.823275"], ["updated_at", "2016-03-07 15:53:59.823275"]]  (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", "2016-03-07 15:53:59.825043"], ["updated_at", "2016-03-07 15:53:59.825043"]]  (0.1ms) 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", "2016-03-07 15:53:59.828113"], ["updated_at", "2016-03-07 15:53:59.828113"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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-03-07 15:53:59.833486"], ["updated_at", "2016-03-07 15:53:59.833486"]]  (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-03-07 15:53:59.835509"], ["updated_at", "2016-03-07 15:53:59.835509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:53:59.838065"], ["updated_at", "2016-03-07 15:53:59.838065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:59.840942"], ["updated_at", "2016-03-07 15:53:59.840942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:59.842578"], ["updated_at", "2016-03-07 15:53:59.842578"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:59.843721"], ["updated_at", "2016-03-07 15:53:59.843721"]]  (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-03-07 15:53:59.844930"], ["updated_at", "2016-03-07 15:53:59.844930"]]  (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-03-07 15:53:59.846759"], ["updated_at", "2016-03-07 15:53:59.846759"]]  (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-03-07 15:53:59.848866"], ["updated_at", "2016-03-07 15:53:59.848866"]]  (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.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", "2016-03-07 15:53:59.854119"], ["updated_at", "2016-03-07 15:53:59.854119"]]  (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", "2016-03-07 15:53:59.856074"], ["updated_at", "2016-03-07 15:53:59.856074"]]  (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 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-03-07 15:53:59.858679"], ["updated_at", "2016-03-07 15:53:59.858679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:53:59.861651"], ["updated_at", "2016-03-07 15:53:59.861651"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:53:59.863247"], ["updated_at", "2016-03-07 15:53:59.863247"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:53:59.864359"], ["updated_at", "2016-03-07 15:53:59.864359"]]  (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-03-07 15:53:59.865517"], ["updated_at", "2016-03-07 15:53:59.865517"]]  (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) 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", "2016-03-07 15:53:59.878851"], ["updated_at", "2016-03-07 15:53:59.878851"]]  (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", "2016-03-07 15:53:59.881990"], ["updated_at", "2016-03-07 15:53:59.881990"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-07 15:53:59.883746"], ["updated_at", "2016-03-07 15:53:59.883746"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:59.884916"], ["updated_at", "2016-03-07 15:53:59.884916"]]  (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 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-03-07 15:53:59.891665"], ["updated_at", "2016-03-07 15:53:59.891665"]]  (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 50' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:53:59.896268"], ["updated_at", "2016-03-07 15:53:59.896268"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-07 15:53:59.898546"], ["updated_at", "2016-03-07 15:53:59.898546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:59.899897"], ["updated_at", "2016-03-07 15:53:59.899897"]]  (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 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", "2016-03-07 15:53:59.905084"], ["updated_at", "2016-03-07 15:53:59.905084"]]  (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 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-03-07 15:53:59.908128"], ["updated_at", "2016-03-07 15:53:59.908128"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2016-03-07 15:53:59.910130"], ["updated_at", "2016-03-07 15:53:59.910130"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:59.911399"], ["updated_at", "2016-03-07 15:53:59.911399"]]  (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-03-07 15:53:59.913042"], ["updated_at", "2016-03-07 15:53:59.913042"]]  (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-03-07 15:53:59.914694"], ["updated_at", "2016-03-07 15:53:59.914694"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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", "2016-03-07 15:53:59.919466"], ["updated_at", "2016-03-07 15:53:59.919466"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) 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", "2016-03-07 15:53:59.922476"], ["updated_at", "2016-03-07 15:53:59.922476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-03-07 15:53:59.924225"], ["updated_at", "2016-03-07 15:53:59.924225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:53:59.925400"], ["updated_at", "2016-03-07 15:53:59.925400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) 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 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", "2016-03-07 15:53:59.994610"], ["updated_at", "2016-03-07 15:53:59.994610"]]  (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", "2016-03-07 15:53:59.997112"], ["updated_at", "2016-03-07 15:53:59.997112"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:54:00.000700"], ["updated_at", "2016-03-07 15:54:00.000700"]]  (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.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", "2016-03-07 15:54:00.005043"], ["updated_at", "2016-03-07 15:54:00.005043"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:54:00.007054"], ["updated_at", "2016-03-07 15:54:00.007054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:00.008726"], ["updated_at", "2016-03-07 15:54:00.008726"]]  (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", "2016-03-07 15:54:00.010398"], ["updated_at", "2016-03-07 15:54:00.010398"]]  (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 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-03-07 15:54:00.018166"], ["updated_at", "2016-03-07 15:54:00.018166"]]  (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-03-07 15:54:00.020445"], ["updated_at", "2016-03-07 15:54:00.020445"]]  (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", "2016-03-07 15:54:00.023427"], ["updated_at", "2016-03-07 15:54:00.023427"]]  (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", "2016-03-07 15:54:00.026605"], ["updated_at", "2016-03-07 15:54:00.026605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:54:00.028197"], ["updated_at", "2016-03-07 15:54:00.028197"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-07 15:54:00.029336"], ["updated_at", "2016-03-07 15:54:00.029336"]]  (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-03-07 15:54:00.030541"], ["updated_at", "2016-03-07 15:54:00.030541"]]  (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", "2016-03-07 15:54:00.036198"], ["updated_at", "2016-03-07 15:54:00.036198"]]  (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", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2016-03-07 15:54:00.038472"], ["updated_at", "2016-03-07 15:54:00.038472"]]  (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 62' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:54:00.043623"], ["updated_at", "2016-03-07 15:54:00.043623"]]  (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.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", "2016-03-07 15:54:00.046782"], ["updated_at", "2016-03-07 15:54:00.046782"]]  (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", "26"], ["created_at", "2016-03-07 15:54:00.048508"], ["updated_at", "2016-03-07 15:54:00.048508"]]  (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", "22"], ["created_at", "2016-03-07 15:54:00.050268"], ["updated_at", "2016-03-07 15:54:00.050268"]]  (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-03-07 15:54:00.051682"], ["updated_at", "2016-03-07 15:54:00.051682"]]  (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.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 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:54:00.057033"], ["updated_at", "2016-03-07 15:54:00.057033"]]  (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-03-07 15:54:00.059463"], ["updated_at", "2016-03-07 15:54:00.059463"]]  (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 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-03-07 15:54:00.062694"], ["updated_at", "2016-03-07 15:54:00.062694"]]  (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 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", "2016-03-07 15:54:00.065738"], ["updated_at", "2016-03-07 15:54:00.065738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:54:00.067645"], ["updated_at", "2016-03-07 15:54:00.067645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:54:00.068788"], ["updated_at", "2016-03-07 15:54:00.068788"]]  (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-03-07 15:54:00.069929"], ["updated_at", "2016-03-07 15:54:00.069929"]]  (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-03-07 15:54:00.071730"], ["updated_at", "2016-03-07 15:54:00.071730"]]  (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", "2016-03-07 15:54:00.073484"], ["updated_at", "2016-03-07 15:54:00.073484"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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.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-03-07 15:54:00.078192"], ["updated_at", "2016-03-07 15:54:00.078192"]]  (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-03-07 15:54:00.080116"], ["updated_at", "2016-03-07 15:54:00.080116"]]  (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", "2016-03-07 15:54:00.082832"], ["updated_at", "2016-03-07 15:54:00.082832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:54:00.085502"], ["updated_at", "2016-03-07 15:54:00.085502"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:54:00.087116"], ["updated_at", "2016-03-07 15:54:00.087116"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:00.088222"], ["updated_at", "2016-03-07 15:54:00.088222"]]  (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-03-07 15:54:00.089375"], ["updated_at", "2016-03-07 15:54:00.089375"]]  (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-03-07 15:54:00.090941"], ["updated_at", "2016-03-07 15:54:00.090941"]]  (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-03-07 15:54:00.092502"], ["updated_at", "2016-03-07 15:54:00.092502"]]  (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", "2016-03-07 15:54:00.097175"], ["updated_at", "2016-03-07 15:54:00.097175"]]  (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-03-07 15:54:00.099270"], ["updated_at", "2016-03-07 15:54:00.099270"]]  (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", "2016-03-07 15:54:00.102102"], ["updated_at", "2016-03-07 15:54:00.102102"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:54:00.105003"], ["updated_at", "2016-03-07 15:54:00.105003"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:54:00.106644"], ["updated_at", "2016-03-07 15:54:00.106644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:54:00.107771"], ["updated_at", "2016-03-07 15:54:00.107771"]]  (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-03-07 15:54:00.108994"], ["updated_at", "2016-03-07 15:54:00.108994"]]  (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-03-07 15:54:00.115811"], ["updated_at", "2016-03-07 15:54:00.115811"]]  (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-03-07 15:54:00.121124"], ["updated_at", "2016-03-07 15:54:00.121124"]]  (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", "2016-03-07 15:54:00.123595"], ["updated_at", "2016-03-07 15:54:00.123595"]]  (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-03-07 15:54:00.125494"], ["updated_at", "2016-03-07 15:54:00.125494"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:54:00.132706"], ["updated_at", "2016-03-07 15:54:00.132706"]]  (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 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", "2016-03-07 15:54:00.139700"], ["updated_at", "2016-03-07 15:54:00.139700"]]  (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.2ms) 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-03-07 15:54:00.145348"], ["updated_at", "2016-03-07 15:54:00.145348"]]  (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", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:54:00.148256"], ["updated_at", "2016-03-07 15:54:00.148256"]]  (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-03-07 15:54:00.150851"], ["updated_at", "2016-03-07 15:54:00.150851"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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.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 78"], ["key", "Key 78"], ["secret", "Account 78"], ["canvas_account_id", "77"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:54:00.155420"], ["updated_at", "2016-03-07 15:54:00.155420"]]  (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-03-07 15:54:00.163105"], ["updated_at", "2016-03-07 15:54:00.163105"]]  (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", "2016-03-07 15:54:00.179416"], ["updated_at", "2016-03-07 15:54:00.179416"]]  (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-03-07 15:54:00.181514"], ["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.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 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", "2016-03-07 15:54:00.187934"], ["updated_at", "2016-03-07 15:54:00.187934"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:54:00.191411"], ["updated_at", "2016-03-07 15:54:00.191411"]]  (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-03-07 15:54:00.192891"], ["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", "2016-03-07 15:54:00.198354"], ["updated_at", "2016-03-07 15:54:00.198354"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:54:00.202097"], ["updated_at", "2016-03-07 15:54:00.202097"]]  (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", "2016-03-07 15:54:00.260815"], ["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-03-07 15:54:00.272888"], ["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", "2016-03-07 15:54:00.277082"], ["updated_at", "2016-03-07 15:54:00.277082"]]  (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-03-07 15:54:00.278952"], ["updated_at", "2016-03-07 15:54:00.278952"]]  (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-03-07 15:54:00.280648"], ["updated_at", "2016-03-07 15:54:00.280648"]]  (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-03-07 15:54:00.282885"], ["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-03-07 15:54:00.284081"], ["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", "2016-03-07 15:54:00.289549"], ["updated_at", "2016-03-07 15:54:00.289549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:54:00.292941"], ["updated_at", "2016-03-07 15:54:00.292941"]]  (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-03-07 15:54:00.294347"], ["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-03-07 15:54:00.298254"], ["updated_at", "2016-03-07 15:54:00.298254"]]  (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", "2016-03-07 15:54:00.301092"], ["updated_at", "2016-03-07 15:54:00.301092"]]  (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", "2016-03-07 15:54:00.308498"], ["updated_at", "2016-03-07 15:54:00.308498"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:54:00.311825"], ["updated_at", "2016-03-07 15:54:00.311825"]]  (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-03-07 15:54:00.313361"], ["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", "2016-03-07 15:54:00.315863"], ["updated_at", "2016-03-07 15:54:00.315863"]]  (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-03-07 15:54:00.317479"], ["updated_at", "2016-03-07 15:54:00.317479"]]  (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-03-07 15:54:00.319479"], ["updated_at", "2016-03-07 15:54:00.319479"]]  (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.1ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (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 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.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 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:54:00.327507"], ["updated_at", "2016-03-07 15:54:00.327507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:54:00.331897"], ["updated_at", "2016-03-07 15:54:00.331897"]]  (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", "2016-03-07 15:54:00.334135"], ["id", 1]]  (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 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", "2016-03-07 15:54:00.340691"], ["updated_at", "2016-03-07 15:54:00.340691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:54:00.343787"], ["updated_at", "2016-03-07 15:54:00.343787"]]  (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-03-07 15:54:00.345183"], ["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.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 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", "2016-03-07 15:54:00.351345"], ["updated_at", "2016-03-07 15:54:00.351345"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:54:00.354522"], ["updated_at", "2016-03-07 15:54:00.354522"]]  (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-03-07 15:54:00.355907"], ["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", "2016-03-07 15:54:00.358407"], ["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.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 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.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 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:54:00.367317"], ["updated_at", "2016-03-07 15:54:00.367317"]]  (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.1ms) 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", "2016-03-07 15:54:00.372401"], ["updated_at", "2016-03-07 15:54:00.372401"]]  (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", "2016-03-07 15:54:00.374786"], ["updated_at", "2016-03-07 15:54:00.374786"]]  (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", "2016-03-07 15:54:00.376995"], ["updated_at", "2016-03-07 15:54:00.376995"]]  (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", "2016-03-07 15:54:00.380492"], ["updated_at", "2016-03-07 15:54:00.380492"]]  (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-03-07 15:54:00.382316"], ["id", 1]]  (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 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", "2016-03-07 15:54:00.390749"], ["updated_at", "2016-03-07 15:54:00.390749"]]  (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.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", "2016-03-07 15:54:00.394249"], ["updated_at", "2016-03-07 15:54:00.394249"]]  (0.1ms) 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", "32"], ["created_at", "2016-03-07 15:54:00.396635"], ["updated_at", "2016-03-07 15:54:00.396635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-07 15:54:00.399150"], ["updated_at", "2016-03-07 15:54:00.399150"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.402622"], ["updated_at", "2016-03-07 15:54:00.402622"]]  (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-03-07 15:54:00.404446"], ["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-03-07 15:54:00.411830"], ["updated_at", "2016-03-07 15:54:00.411830"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:54:00.415019"], ["updated_at", "2016-03-07 15:54:00.415019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2016-03-07 15:54:00.416987"], ["updated_at", "2016-03-07 15:54:00.416987"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:00.418306"], ["updated_at", "2016-03-07 15:54:00.418306"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.421080"], ["updated_at", "2016-03-07 15:54:00.421080"]]  (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", "2016-03-07 15:54:00.422451"], ["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.1ms) 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-03-07 15:54:00.429856"], ["updated_at", "2016-03-07 15:54:00.429856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:54:00.433344"], ["updated_at", "2016-03-07 15:54:00.433344"]]  (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", "34"], ["created_at", "2016-03-07 15:54:00.435798"], ["updated_at", "2016-03-07 15:54:00.435798"]]  (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", "29"], ["created_at", "2016-03-07 15:54:00.438171"], ["updated_at", "2016-03-07 15:54:00.438171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.441795"], ["updated_at", "2016-03-07 15:54:00.441795"]]  (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-03-07 15:54:00.443594"], ["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", "2016-03-07 15:54:00.451857"], ["updated_at", "2016-03-07 15:54:00.451857"]]  (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.1ms) 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-03-07 15:54:00.456297"], ["updated_at", "2016-03-07 15:54:00.456297"]]  (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", "35"], ["created_at", "2016-03-07 15:54:00.459035"], ["updated_at", "2016-03-07 15:54:00.459035"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:00.460503"], ["updated_at", "2016-03-07 15:54:00.460503"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.463439"], ["updated_at", "2016-03-07 15:54:00.463439"]]  (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-03-07 15:54:00.465258"], ["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", "2016-03-07 15:54:00.473232"], ["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-03-07 15:54:00.477701"], ["updated_at", "2016-03-07 15:54:00.477701"]]  (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", "2016-03-07 15:54:00.480153"], ["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", "2016-03-07 15:54:00.482893"], ["updated_at", "2016-03-07 15:54:00.482893"]]  (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-03-07 15:54:00.484640"], ["updated_at", "2016-03-07 15:54:00.484640"]]  (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-03-07 15:54:00.547575"], ["updated_at", "2016-03-07 15:54:00.547575"]]  (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-03-07 15:54:00.559374"], ["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.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.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-03-07 15:54:00.578598"], ["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.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", "2016-03-07 15:54:00.583423"], ["updated_at", "2016-03-07 15:54:00.583423"]]  (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.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", 50.0], ["updated_at", "2016-03-07 15:54:00.587633"], ["id", 1]]  (0.0ms) 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"."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.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]]  (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-03-07 15:54:00.611462"], ["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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2016-03-07 15:54:00.614752"], ["id", 1]]  (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.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.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-03-07 15:54:00.627564"], ["updated_at", "2016-03-07 15:54:00.627564"]]  (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-03-07 15:54:00.631414"], ["updated_at", "2016-03-07 15:54:00.631414"]]  (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", "2016-03-07 15:54:00.633576"], ["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.7ms) 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.6ms) INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2016-03-07 15:54:00.647353"], ["updated_at", "2016-03-07 15:54:00.647353"]]  (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.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" = ? 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", "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-03-07 15:54:00.652954"], ["updated_at", "2016-03-07 15:54:00.652954"]]  (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 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-03-07 15:54:00.660066"], ["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-03-07 15:54:00.661302"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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", "2016-03-07 15:54:00.669379"], ["updated_at", "2016-03-07 15:54:00.669379"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:54:00.672489"], ["updated_at", "2016-03-07 15:54:00.672489"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:00.674531"], ["updated_at", "2016-03-07 15:54:00.674531"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-03-07 15:54:00.675809"], ["updated_at", "2016-03-07 15:54:00.675809"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.678294"], ["updated_at", "2016-03-07 15:54:00.678294"]]  (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-03-07 15:54:00.679601"], ["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-03-07 15:54:00.681719"], ["updated_at", "2016-03-07 15:54:00.681719"]]  (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.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 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", "2016-03-07 15:54:00.689241"], ["updated_at", "2016-03-07 15:54:00.689241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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-03-07 15:54:00.692228"], ["updated_at", "2016-03-07 15:54:00.692228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:00.694213"], ["updated_at", "2016-03-07 15:54:00.694213"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-07 15:54:00.695405"], ["updated_at", "2016-03-07 15:54:00.695405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.697915"], ["updated_at", "2016-03-07 15:54:00.697915"]]  (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-03-07 15:54:00.699402"], ["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", "2016-03-07 15:54:00.701780"], ["updated_at", "2016-03-07 15:54:00.701780"]]  (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-03-07 15:54:00.703410"], ["updated_at", "2016-03-07 15:54:00.703410"]]  (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-03-07 15:54:00.704933"], ["updated_at", "2016-03-07 15:54:00.704933"]]  (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.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.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", "2016-03-07 15:54:00.714329"], ["updated_at", "2016-03-07 15:54:00.714329"]]  (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.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", "2016-03-07 15:54:00.718206"], ["updated_at", "2016-03-07 15:54:00.718206"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:00.720235"], ["updated_at", "2016-03-07 15:54:00.720235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-07 15:54:00.721596"], ["updated_at", "2016-03-07 15:54:00.721596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.725020"], ["updated_at", "2016-03-07 15:54:00.725020"]]  (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-03-07 15:54:00.726756"], ["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.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-03-07 15:54:00.784120"], ["updated_at", "2016-03-07 15:54:00.784120"]]  (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-03-07 15:54:00.786467"], ["updated_at", "2016-03-07 15:54:00.786467"]]  (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-03-07 15:54:00.788022"], ["updated_at", "2016-03-07 15:54:00.788022"]]  (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", "2016-03-07 15:54:00.789517"], ["updated_at", "2016-03-07 15:54:00.789517"]]  (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.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 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", "2016-03-07 15:54:00.812295"], ["updated_at", "2016-03-07 15:54:00.812295"]]  (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.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-03-07 15:54:00.816237"], ["updated_at", "2016-03-07 15:54:00.816237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-07 15:54:00.818453"], ["updated_at", "2016-03-07 15:54:00.818453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:00.819662"], ["updated_at", "2016-03-07 15:54:00.819662"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.822051"], ["updated_at", "2016-03-07 15:54:00.822051"]]  (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-03-07 15:54:00.823347"], ["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.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", "2016-03-07 15:54:00.831852"], ["updated_at", "2016-03-07 15:54:00.831852"]]  (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.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.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", "2016-03-07 15:54:00.841712"], ["updated_at", "2016-03-07 15:54:00.841712"]]  (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.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 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:54:00.845159"], ["updated_at", "2016-03-07 15:54:00.845159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:00.847255"], ["updated_at", "2016-03-07 15:54:00.847255"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2016-03-07 15:54:00.848932"], ["updated_at", "2016-03-07 15:54:00.848932"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.852676"], ["updated_at", "2016-03-07 15:54:00.852676"]]  (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-03-07 15:54:00.854534"], ["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-03-07 15:54:00.857450"], ["updated_at", "2016-03-07 15:54:00.857450"]]  (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.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.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", "2016-03-07 15:54:00.879649"], ["updated_at", "2016-03-07 15:54:00.879649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:54:00.882602"], ["updated_at", "2016-03-07 15:54:00.882602"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-07 15:54:00.884558"], ["updated_at", "2016-03-07 15:54:00.884558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:00.885683"], ["updated_at", "2016-03-07 15:54:00.885683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.888055"], ["updated_at", "2016-03-07 15:54:00.888055"]]  (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-03-07 15:54:00.889351"], ["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-03-07 15:54:00.891583"], ["updated_at", "2016-03-07 15:54:00.891583"]]  (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", "2016-03-07 15:54:00.899249"], ["updated_at", "2016-03-07 15:54:00.899249"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:54:00.902237"], ["updated_at", "2016-03-07 15:54:00.902237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2016-03-07 15:54:00.904132"], ["updated_at", "2016-03-07 15:54:00.904132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:00.905298"], ["updated_at", "2016-03-07 15:54:00.905298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.907817"], ["updated_at", "2016-03-07 15:54:00.907817"]]  (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-03-07 15:54:00.909152"], ["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-03-07 15:54:00.911466"], ["updated_at", "2016-03-07 15:54:00.911466"]]  (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-03-07 15:54:00.913625"], ["updated_at", "2016-03-07 15:54:00.913625"]]  (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-03-07 15:54:00.915710"], ["updated_at", "2016-03-07 15:54:00.915710"]]  (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", "2016-03-07 15:54:00.917315"], ["updated_at", "2016-03-07 15:54:00.917315"]]  (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.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-03-07 15:54:00.943084"], ["updated_at", "2016-03-07 15:54:00.943084"]]  (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-03-07 15:54:00.946116"], ["updated_at", "2016-03-07 15:54:00.946116"]]  (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", "2016-03-07 15:54:00.948924"], ["updated_at", "2016-03-07 15:54:00.948924"]]  (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", "2016-03-07 15:54:00.951706"], ["updated_at", "2016-03-07 15:54:00.951706"]]  (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", "2016-03-07 15:54:00.959428"], ["updated_at", "2016-03-07 15:54:00.959428"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:54:00.962550"], ["updated_at", "2016-03-07 15:54:00.962550"]]  (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", "43"], ["created_at", "2016-03-07 15:54:00.964658"], ["updated_at", "2016-03-07 15:54:00.964658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:00.965961"], ["updated_at", "2016-03-07 15:54:00.965961"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:00.968524"], ["updated_at", "2016-03-07 15:54:00.968524"]]  (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-03-07 15:54:00.970425"], ["id", 1]]  (0.1ms) 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", "2016-03-07 15:54:01.029896"], ["updated_at", "2016-03-07 15:54:01.029896"]]  (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", "2016-03-07 15:54:01.033866"], ["updated_at", "2016-03-07 15:54:01.033866"]]  (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-03-07 15:54:01.036433"], ["updated_at", "2016-03-07 15:54:01.036433"]]  (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.2ms) 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", "2016-03-07 15:54:01.046277"], ["updated_at", "2016-03-07 15:54:01.046277"]]  (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", "2016-03-07 15:54:01.050693"], ["updated_at", "2016-03-07 15:54:01.050693"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2016-03-07 15:54:01.052728"], ["updated_at", "2016-03-07 15:54:01.052728"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:01.054065"], ["updated_at", "2016-03-07 15:54:01.054065"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.056721"], ["updated_at", "2016-03-07 15:54:01.056721"]]  (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-03-07 15:54:01.058172"], ["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-03-07 15:54:01.060385"], ["updated_at", "2016-03-07 15:54:01.060385"]]  (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-03-07 15:54:01.062505"], ["updated_at", "2016-03-07 15:54:01.062505"]]  (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-03-07 15:54:01.064522"], ["updated_at", "2016-03-07 15:54:01.064522"]]  (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-03-07 15:54:01.066293"], ["updated_at", "2016-03-07 15:54:01.066293"]]  (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.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.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-03-07 15:54:01.087467"], ["updated_at", "2016-03-07 15:54:01.087467"]]  (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", "2016-03-07 15:54:01.089732"], ["updated_at", "2016-03-07 15:54:01.089732"]]  (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.1ms) rollback transaction  (0.0ms) 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.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-03-07 15:54:01.100757"], ["updated_at", "2016-03-07 15:54:01.100757"]]  (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.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", "2016-03-07 15:54:01.104569"], ["updated_at", "2016-03-07 15:54:01.104569"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:01.106574"], ["updated_at", "2016-03-07 15:54:01.106574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-03-07 15:54:01.107774"], ["updated_at", "2016-03-07 15:54:01.107774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.110233"], ["updated_at", "2016-03-07 15:54:01.110233"]]  (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-03-07 15:54:01.111528"], ["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-03-07 15:54:01.115002"], ["updated_at", "2016-03-07 15:54:01.115002"]]  (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", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2016-03-07 15:54:01.117722"], ["updated_at", "2016-03-07 15:54:01.117722"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (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.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", "2016-03-07 15:54:01.126712"], ["updated_at", "2016-03-07 15:54:01.126712"]]  (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 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.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", "2016-03-07 15:54:01.131672"], ["updated_at", "2016-03-07 15:54:01.131672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:01.133956"], ["updated_at", "2016-03-07 15:54:01.133956"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-07 15:54:01.135265"], ["updated_at", "2016-03-07 15:54:01.135265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.137781"], ["updated_at", "2016-03-07 15:54:01.137781"]]  (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-03-07 15:54:01.139187"], ["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-03-07 15:54:01.141312"], ["updated_at", "2016-03-07 15:54:01.141312"]]  (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-03-07 15:54:01.143794"], ["updated_at", "2016-03-07 15:54:01.143794"]]  (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-03-07 15:54:01.145600"], ["updated_at", "2016-03-07 15:54:01.145600"]]  (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-03-07 15:54:01.147365"], ["updated_at", "2016-03-07 15:54:01.147365"]]  (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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n"], ["updated_at", "2016-03-07 15:54:01.162158"], ["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" = ? 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  (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  (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.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.2ms) 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 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", "2016-03-07 15:54:01.186898"], ["updated_at", "2016-03-07 15:54:01.186898"]]  (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.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", "2016-03-07 15:54:01.190607"], ["updated_at", "2016-03-07 15:54:01.190607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-07 15:54:01.192499"], ["updated_at", "2016-03-07 15:54:01.192499"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:01.193618"], ["updated_at", "2016-03-07 15:54:01.193618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.196095"], ["updated_at", "2016-03-07 15:54:01.196095"]]  (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-03-07 15:54:01.197540"], ["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-03-07 15:54:01.199715"], ["updated_at", "2016-03-07 15:54:01.199715"]]  (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-03-07 15:54:01.201764"], ["updated_at", "2016-03-07 15:54:01.201764"]]  (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-03-07 15:54:01.203491"], ["updated_at", "2016-03-07 15:54:01.203491"]]  (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", "2016-03-07 15:54:01.205022"], ["updated_at", "2016-03-07 15:54:01.205022"]]  (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.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- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-03-07 15:54:01.222250"], ["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.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.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.4ms) 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.7ms) 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 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-03-07 15:54:01.240414"], ["updated_at", "2016-03-07 15:54:01.240414"]]  (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 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-03-07 15:54:01.310621"], ["updated_at", "2016-03-07 15:54:01.310621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-07 15:54:01.312670"], ["updated_at", "2016-03-07 15:54:01.312670"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:01.314028"], ["updated_at", "2016-03-07 15:54:01.314028"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.316499"], ["updated_at", "2016-03-07 15:54:01.316499"]]  (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-03-07 15:54:01.317815"], ["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-03-07 15:54:01.319995"], ["updated_at", "2016-03-07 15:54:01.319995"]]  (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-03-07 15:54:01.322172"], ["updated_at", "2016-03-07 15:54:01.322172"]]  (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-03-07 15:54:01.323830"], ["updated_at", "2016-03-07 15:54:01.323830"]]  (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", "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", "2016-03-07 15:54:01.325482"], ["updated_at", "2016-03-07 15:54:01.325482"]]  (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", "2016-03-07 15:54:01.339783"], ["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.5ms) 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", "2016-03-07 15:54:01.356808"], ["updated_at", "2016-03-07 15:54:01.356808"]]  (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", "2016-03-07 15:54:01.360580"], ["updated_at", "2016-03-07 15:54:01.360580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:01.362579"], ["updated_at", "2016-03-07 15:54:01.362579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2016-03-07 15:54:01.363749"], ["updated_at", "2016-03-07 15:54:01.363749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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", "2016-03-07 15:54:01.367579"], ["updated_at", "2016-03-07 15:54:01.367579"]]  (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-03-07 15:54:01.369993"], ["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-03-07 15:54:01.373157"], ["updated_at", "2016-03-07 15:54:01.373157"]]  (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-03-07 15:54:01.375922"], ["updated_at", "2016-03-07 15:54:01.375922"]]  (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-03-07 15:54:01.377941"], ["updated_at", "2016-03-07 15:54:01.377941"]]  (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", "2016-03-07 15:54:01.379748"], ["updated_at", "2016-03-07 15:54:01.379748"]]  (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.1ms) 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-03-07 15:54:01.395145"], ["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-03-07 15:54:01.400925"], ["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.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.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-03-07 15:54:01.410982"], ["updated_at", "2016-03-07 15:54:01.410982"]]  (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", "2016-03-07 15:54:01.414419"], ["updated_at", "2016-03-07 15:54:01.414419"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-03-07 15:54:01.416502"], ["updated_at", "2016-03-07 15:54:01.416502"]]  (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", "45"], ["created_at", "2016-03-07 15:54:01.418104"], ["updated_at", "2016-03-07 15:54:01.418104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.421980"], ["updated_at", "2016-03-07 15:54:01.421980"]]  (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-03-07 15:54:01.423801"], ["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 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-03-07 15:54:01.431846"], ["updated_at", "2016-03-07 15:54:01.431846"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:54:01.435019"], ["updated_at", "2016-03-07 15:54:01.435019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:01.436787"], ["updated_at", "2016-03-07 15:54:01.436787"]]  (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", "2016-03-07 15:54:01.438232"], ["updated_at", "2016-03-07 15:54:01.438232"]]  (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-03-07 15:54:01.441761"], ["updated_at", "2016-03-07 15:54:01.441761"]]  (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-03-07 15:54:01.443900"], ["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 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.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", "2016-03-07 15:54:01.453097"], ["updated_at", "2016-03-07 15:54:01.453097"]]  (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 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.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 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:54:01.459037"], ["updated_at", "2016-03-07 15:54:01.459037"]]  (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", "52"], ["created_at", "2016-03-07 15:54:01.461894"], ["updated_at", "2016-03-07 15:54:01.461894"]]  (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", "2016-03-07 15:54:01.463645"], ["updated_at", "2016-03-07 15:54:01.463645"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.466954"], ["updated_at", "2016-03-07 15:54:01.466954"]]  (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-03-07 15:54:01.468646"], ["id", 1]]  (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 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.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 131"], ["key", "Key 131"], ["secret", "Account 131"], ["canvas_account_id", "130"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:54:01.479141"], ["updated_at", "2016-03-07 15:54:01.479141"]]  (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 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-03-07 15:54:01.483528"], ["updated_at", "2016-03-07 15:54:01.483528"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:01.485658"], ["updated_at", "2016-03-07 15:54:01.485658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-07 15:54:01.487041"], ["updated_at", "2016-03-07 15:54:01.487041"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.489787"], ["updated_at", "2016-03-07 15:54:01.489787"]]  (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-03-07 15:54:01.491268"], ["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 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", "2016-03-07 15:54:01.499656"], ["updated_at", "2016-03-07 15:54:01.499656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:54:01.502698"], ["updated_at", "2016-03-07 15:54:01.502698"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2016-03-07 15:54:01.504376"], ["updated_at", "2016-03-07 15:54:01.504376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:54:01.505480"], ["updated_at", "2016-03-07 15:54:01.505480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.507816"], ["updated_at", "2016-03-07 15:54:01.507816"]]  (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-03-07 15:54:01.509303"], ["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 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-03-07 15:54:01.516814"], ["updated_at", "2016-03-07 15:54:01.516814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:54:01.520066"], ["updated_at", "2016-03-07 15:54:01.520066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:01.521876"], ["updated_at", "2016-03-07 15:54:01.521876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-03-07 15:54:01.523267"], ["updated_at", "2016-03-07 15:54:01.523267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.525835"], ["updated_at", "2016-03-07 15:54:01.525835"]]  (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-03-07 15:54:01.527582"], ["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", "2016-03-07 15:54:01.596132"], ["updated_at", "2016-03-07 15:54:01.596132"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:54:01.599511"], ["updated_at", "2016-03-07 15:54:01.599511"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-07 15:54:01.601474"], ["updated_at", "2016-03-07 15:54:01.601474"]]  (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", "51"], ["created_at", "2016-03-07 15:54:01.602725"], ["updated_at", "2016-03-07 15:54:01.602725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.605704"], ["updated_at", "2016-03-07 15:54:01.605704"]]  (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-03-07 15:54:01.607137"], ["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", "2016-03-07 15:54:01.614347"], ["updated_at", "2016-03-07 15:54:01.614347"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:54:01.617649"], ["updated_at", "2016-03-07 15:54:01.617649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:01.619687"], ["updated_at", "2016-03-07 15:54:01.619687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2016-03-07 15:54:01.620935"], ["updated_at", "2016-03-07 15:54:01.620935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.623540"], ["updated_at", "2016-03-07 15:54:01.623540"]]  (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-03-07 15:54:01.624927"], ["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.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.1ms) 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-03-07 15:54:01.635152"], ["updated_at", "2016-03-07 15:54:01.635152"]]  (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.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-03-07 15:54:01.638558"], ["updated_at", "2016-03-07 15:54:01.638558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:54:01.640599"], ["updated_at", "2016-03-07 15:54:01.640599"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-03-07 15:54:01.641807"], ["updated_at", "2016-03-07 15:54:01.641807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:54:01.644396"], ["updated_at", "2016-03-07 15:54:01.644396"]]  (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-03-07 15:54:01.645774"], ["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", "2016-03-07 15:54:01.648782"], ["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 3ms (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.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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.2ms) 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", "2016-03-07 15:55:18.143148"], ["updated_at", "2016-03-07 15:55:18.143148"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:18.233463"], ["updated_at", "2016-03-07 15:55:18.233463"]]  (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.3ms) 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.2ms) 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" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("api_token", "refresh_token", "expires_at", "user_id", "api_domain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2016-03-07 16:55:18.337672"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:55:18.342608"], ["updated_at", "2016-03-07 15:55:18.342608"]]  (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.7ms) Completed 200 OK in 115ms (Views: 13.5ms | ActiveRecord: 2.2ms) CoalescingPanda::CanvasApiAuth Load (0.4ms) 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.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.9ms) Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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 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.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 2"], ["key", "Key 2"], ["secret", "Account 2"], ["canvas_account_id", "2"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:18.544395"], ["updated_at", "2016-03-07 15:55:18.544395"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 3"], ["key", "Key 3"], ["secret", "Account 3"], ["canvas_account_id", "3"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:18.637598"], ["updated_at", "2016-03-07 15:55:18.637598"]]  (0.1ms) 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", "2016-03-07 15:55:18.650940"], ["updated_at", "2016-03-07 15:55:18.650940"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:55:18.706104"], ["updated_at", "2016-03-07 15:55:18.706104"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) 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", "2016-03-07 15:55:18.809987"], ["updated_at", "2016-03-07 15:55:18.809987"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:18.889097"], ["updated_at", "2016-03-07 15:55:18.889097"]]  (0.2ms) 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", "2"], ["created_at", "2016-03-07 15:55:18.900641"], ["updated_at", "2016-03-07 15:55:18.900641"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2"], ["created_at", "2016-03-07 15:55:18.909550"], ["updated_at", "2016-03-07 15:55:18.909550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' 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 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:18.984093"], ["updated_at", "2016-03-07 15:55:18.984093"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 7' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' 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 7"], ["key", "Key 7"], ["secret", "Account 7"], ["canvas_account_id", "7"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:19.013176"], ["updated_at", "2016-03-07 15:55:19.013176"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "3"], ["created_at", "2016-03-07 15:55:19.072521"], ["updated_at", "2016-03-07 15:55:19.072521"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "3"], ["created_at", "2016-03-07 15:55:19.082450"], ["updated_at", "2016-03-07 15:55:19.082450"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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 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.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 8"], ["key", "Key 8"], ["secret", "Account 8"], ["canvas_account_id", "8"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:19.259646"], ["updated_at", "2016-03-07 15:55:19.259646"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 9"], ["key", "Key 9"], ["secret", "Account 9"], ["canvas_account_id", "9"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:19.280396"], ["updated_at", "2016-03-07 15:55:19.280396"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "4"], ["created_at", "2016-03-07 15:55:19.343863"], ["updated_at", "2016-03-07 15:55:19.343863"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "4"], ["created_at", "2016-03-07 15:55:19.356212"], ["updated_at", "2016-03-07 15:55:19.356212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' 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 10"], ["key", "Key 10"], ["secret", "Account 10"], ["canvas_account_id", "10"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:19.438205"], ["updated_at", "2016-03-07 15:55:19.438205"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 11"], ["key", "Key 11"], ["secret", "Account 11"], ["canvas_account_id", "11"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:19.466616"], ["updated_at", "2016-03-07 15:55:19.466616"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "5"], ["created_at", "2016-03-07 15:55:19.483483"], ["updated_at", "2016-03-07 15:55:19.483483"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "5"], ["created_at", "2016-03-07 15:55:19.537140"], ["updated_at", "2016-03-07 15:55:19.537140"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) 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 12' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' 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 12"], ["key", "Key 12"], ["secret", "Account 12"], ["canvas_account_id", "12"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:19.619783"], ["updated_at", "2016-03-07 15:55:19.619783"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 13' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 13' 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 13"], ["key", "Key 13"], ["secret", "Account 13"], ["canvas_account_id", "13"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:19.640383"], ["updated_at", "2016-03-07 15:55:19.640383"]]  (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", "6"], ["created_at", "2016-03-07 15:55:19.699187"], ["updated_at", "2016-03-07 15:55:19.699187"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "6"], ["created_at", "2016-03-07 15:55:19.709015"], ["updated_at", "2016-03-07 15:55:19.709015"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-03-07 15:55:19.719903"], ["updated_at", "2016-03-07 15:55:19.719903"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:19.740323"], ["updated_at", "2016-03-07 15:55:19.740323"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) 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.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 14"], ["key", "Key 14"], ["secret", "Account 14"], ["canvas_account_id", "14"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:19.809014"], ["updated_at", "2016-03-07 15:55:19.809014"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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 15' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' 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 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:19.845284"], ["updated_at", "2016-03-07 15:55:19.845284"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "7"], ["created_at", "2016-03-07 15:55:19.906986"], ["updated_at", "2016-03-07 15:55:19.906986"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "7"], ["created_at", "2016-03-07 15:55:19.980658"], ["updated_at", "2016-03-07 15:55:19.980658"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::CanvasApiAuth Load (0.3ms) SELECT "coalescing_panda_canvas_api_auths".* FROM "coalescing_panda_canvas_api_auths" ORDER BY "coalescing_panda_canvas_api_auths"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2016-03-07 15:55:20.001432"], ["updated_at", "2016-03-07 15:55:20.001432"]]  (0.2ms) RELEASE 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" = 'a' AND "coalescing_panda_canvas_api_auths"."api_domain" IS NULL) LIMIT 1 CoalescingPanda::CanvasApiAuth Load (0.3ms) 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  (0.6ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::CanvasApiAuth Exists (0.3ms) 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.2ms) 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  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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", "2016-03-08 15:55:20.178606"], ["created_at", "2016-03-07 15:55:20.183223"], ["updated_at", "2016-03-07 15:55:20.183223"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:55:20.265394"], ["updated_at", "2016-03-07 15:55:20.265394"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:55:20.336700"], ["updated_at", "2016-03-07 15:55:20.336700"]]  (0.1ms) 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", "2016-03-07 15:55:20.344294"], ["updated_at", "2016-03-07 15:55:20.344294"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' 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 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:20.438199"], ["updated_at", "2016-03-07 15:55:20.438199"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 17' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' LIMIT 1 SQL (1.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-03-07 15:55:20.465569"], ["updated_at", "2016-03-07 15:55:20.465569"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "8"], ["created_at", "2016-03-07 15:55:20.525882"], ["updated_at", "2016-03-07 15:55:20.525882"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 18' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' 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 18"], ["key", "Key 18"], ["secret", "Account 18"], ["canvas_account_id", "18"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:20.554299"], ["updated_at", "2016-03-07 15:55:20.554299"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 19' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' 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 19"], ["key", "Key 19"], ["secret", "Account 19"], ["canvas_account_id", "19"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:20.622663"], ["updated_at", "2016-03-07 15:55:20.622663"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "9"], ["created_at", "2016-03-07 15:55:20.690746"], ["updated_at", "2016-03-07 15:55:20.690746"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 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", "2016-03-07 15:55:20.718000"], ["updated_at", "2016-03-07 15:55:20.718000"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:55:20.789370"], ["updated_at", "2016-03-07 15:55:20.789370"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:20.807662"], ["updated_at", "2016-03-07 15:55:20.807662"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "1"], ["created_at", "2016-03-07 15:55:20.817784"], ["updated_at", "2016-03-07 15:55:20.817784"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 22' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:55:20.889156"], ["updated_at", "2016-03-07 15:55:20.889156"]]  (0.2ms) 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", 3], ["canvas_term_id", "11"], ["created_at", "2016-03-07 15:55:20.901780"], ["updated_at", "2016-03-07 15:55:20.901780"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:55:20.911391"], ["updated_at", "2016-03-07 15:55:20.911391"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 23' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' 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 23"], ["key", "Key 23"], ["secret", "Account 23"], ["canvas_account_id", "23"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:20.983771"], ["updated_at", "2016-03-07 15:55:20.983771"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["canvas_term_id", "12"], ["created_at", "2016-03-07 15:55:21.054214"], ["updated_at", "2016-03-07 15:55:21.054214"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 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", "2016-03-07 15:55:21.070317"], ["updated_at", "2016-03-07 15:55:21.070317"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "1"], ["created_at", "2016-03-07 15:55:21.086324"], ["updated_at", "2016-03-07 15:55:21.086324"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (46.4ms) 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 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.2ms) INSERT INTO "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-03-07 15:55:21.150227"], ["updated_at", "2016-03-07 15:55:21.150227"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:55:21.170363"], ["updated_at", "2016-03-07 15:55:21.170363"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 26' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' 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 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:21.201154"], ["updated_at", "2016-03-07 15:55:21.201154"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 27' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' 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 27"], ["key", "Key 27"], ["secret", "Account 27"], ["canvas_account_id", "27"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:21.274683"], ["updated_at", "2016-03-07 15:55:21.274683"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "13"], ["created_at", "2016-03-07 15:55:21.288650"], ["updated_at", "2016-03-07 15:55:21.288650"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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 28' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:55:21.445577"], ["updated_at", "2016-03-07 15:55:21.445577"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_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-03-07 15:55:21.458825"], ["updated_at", "2016-03-07 15:55:21.458825"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 29"], ["key", "Key 29"], ["secret", "Account 29"], ["canvas_account_id", "29"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:21.540369"], ["updated_at", "2016-03-07 15:55:21.540369"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 30' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' 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 30"], ["key", "Key 30"], ["secret", "Account 30"], ["canvas_account_id", "30"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:21.565771"], ["updated_at", "2016-03-07 15:55:21.565771"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "14"], ["created_at", "2016-03-07 15:55:21.630052"], ["updated_at", "2016-03-07 15:55:21.630052"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "10"], ["created_at", "2016-03-07 15:55:21.640207"], ["updated_at", "2016-03-07 15:55:21.640207"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-03-07 15:55:21.654465"], ["updated_at", "2016-03-07 15:55:21.654465"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) 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 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.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 31"], ["key", "Key 31"], ["secret", "Account 31"], ["canvas_account_id", "31"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:21.795652"], ["updated_at", "2016-03-07 15:55:21.795652"]]  (0.1ms) 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", "test3@test.com"], ["name", "Factory User 3"], ["canvas_user_id", "3"], ["created_at", "2016-03-07 15:55:21.807987"], ["updated_at", "2016-03-07 15:55:21.807987"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 32' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' 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 32"], ["key", "Key 32"], ["secret", "Account 32"], ["canvas_account_id", "32"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:21.872168"], ["updated_at", "2016-03-07 15:55:21.872168"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 33"], ["key", "Key 33"], ["secret", "Account 33"], ["canvas_account_id", "33"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:21.894610"], ["updated_at", "2016-03-07 15:55:21.894610"]]  (0.2ms) 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", 3], ["canvas_term_id", "15"], ["created_at", "2016-03-07 15:55:21.912716"], ["updated_at", "2016-03-07 15:55:21.912716"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:55:21.967619"], ["updated_at", "2016-03-07 15:55:21.967619"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-03-07 15:55:21.979645"], ["updated_at", "2016-03-07 15:55:21.979645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' 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 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:22.013816"], ["updated_at", "2016-03-07 15:55:22.013816"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-03-07 15:55:22.076186"], ["updated_at", "2016-03-07 15:55:22.076186"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (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 35' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 35"], ["key", "Key 35"], ["secret", "Account 35"], ["canvas_account_id", "35"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:22.151498"], ["updated_at", "2016-03-07 15:55:22.151498"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 36' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 SQL (0.2ms) INSERT INTO "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-03-07 15:55:22.170066"], ["updated_at", "2016-03-07 15:55:22.170066"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "16"], ["created_at", "2016-03-07 15:55:22.223558"], ["updated_at", "2016-03-07 15:55:22.223558"]]  (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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "12"], ["created_at", "2016-03-07 15:55:22.233101"], ["updated_at", "2016-03-07 15:55:22.233101"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "3"], ["created_at", "2016-03-07 15:55:22.242249"], ["updated_at", "2016-03-07 15:55:22.242249"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' 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 37"], ["key", "Key 37"], ["secret", "Account 37"], ["canvas_account_id", "37"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:22.315016"], ["updated_at", "2016-03-07 15:55:22.315016"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2016-03-07 15:55:22.330042"], ["updated_at", "2016-03-07 15:55:22.330042"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 38' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' 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 38"], ["key", "Key 38"], ["secret", "Account 38"], ["canvas_account_id", "38"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:22.352275"], ["updated_at", "2016-03-07 15:55:22.352275"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 39' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 39' 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 39"], ["key", "Key 39"], ["secret", "Account 39"], ["canvas_account_id", "39"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:22.421565"], ["updated_at", "2016-03-07 15:55:22.421565"]]  (0.4ms) 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", 3], ["canvas_term_id", "17"], ["created_at", "2016-03-07 15:55:22.493413"], ["updated_at", "2016-03-07 15:55:22.493413"]]  (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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:55:22.501691"], ["updated_at", "2016-03-07 15:55:22.501691"]]  (0.1ms) 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", "4"], ["created_at", "2016-03-07 15:55:22.509570"], ["updated_at", "2016-03-07 15:55:22.509570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-03-07 15:55:22.518808"], ["updated_at", "2016-03-07 15:55:22.518808"]]  (0.2ms) 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", "2016-03-07 15:55:22.579591"], ["updated_at", "2016-03-07 15:55:22.579591"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 40' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' 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 40"], ["key", "Key 40"], ["secret", "Account 40"], ["canvas_account_id", "40"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:22.604295"], ["updated_at", "2016-03-07 15:55:22.604295"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test6@test.com"], ["name", "Factory User 6"], ["canvas_user_id", "6"], ["created_at", "2016-03-07 15:55:22.619276"], ["updated_at", "2016-03-07 15:55:22.619276"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 41' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' 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 41"], ["key", "Key 41"], ["secret", "Account 41"], ["canvas_account_id", "41"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:22.685934"], ["updated_at", "2016-03-07 15:55:22.685934"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 42' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' 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 42"], ["key", "Key 42"], ["secret", "Account 42"], ["canvas_account_id", "42"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:22.713874"], ["updated_at", "2016-03-07 15:55:22.713874"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 3], ["canvas_term_id", "18"], ["created_at", "2016-03-07 15:55:22.770486"], ["updated_at", "2016-03-07 15:55:22.770486"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "14"], ["created_at", "2016-03-07 15:55:22.780802"], ["updated_at", "2016-03-07 15:55:22.780802"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "5"], ["created_at", "2016-03-07 15:55:22.844886"], ["updated_at", "2016-03-07 15:55:22.844886"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-03-07 15:55:22.858138"], ["updated_at", "2016-03-07 15:55:22.858138"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "6"], ["enrollment_type", "TeacherEnrollment"], ["created_at", "2016-03-07 15:55:22.872278"], ["updated_at", "2016-03-07 15:55:22.872278"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' 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 43"], ["key", "Key 43"], ["secret", "Account 43"], ["canvas_account_id", "43"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:22.944923"], ["updated_at", "2016-03-07 15:55:22.944923"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2016-03-07 15:55:22.962145"], ["updated_at", "2016-03-07 15:55:22.962145"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' 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 44"], ["key", "Key 44"], ["secret", "Account 44"], ["canvas_account_id", "44"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:22.986805"], ["updated_at", "2016-03-07 15:55:22.986805"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 45' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 45' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 45"], ["key", "Key 45"], ["secret", "Account 45"], ["canvas_account_id", "45"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:23.054744"], ["updated_at", "2016-03-07 15:55:23.054744"]]  (0.2ms) 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", 3], ["canvas_term_id", "19"], ["created_at", "2016-03-07 15:55:23.067556"], ["updated_at", "2016-03-07 15:55:23.067556"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:55:23.078031"], ["updated_at", "2016-03-07 15:55:23.078031"]]  (0.2ms) 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", "6"], ["created_at", "2016-03-07 15:55:23.130901"], ["updated_at", "2016-03-07 15:55:23.130901"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) 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.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.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) 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 47' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' 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 47"], ["key", "Key 47"], ["secret", "Account 47"], ["canvas_account_id", "46"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:23.308975"], ["updated_at", "2016-03-07 15:55:23.308975"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 48' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' LIMIT 1 SQL (1.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", "2016-03-07 15:55:23.333646"], ["updated_at", "2016-03-07 15:55:23.333646"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "20"], ["created_at", "2016-03-07 15:55:23.394121"], ["updated_at", "2016-03-07 15:55:23.394121"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "16"], ["created_at", "2016-03-07 15:55:23.406000"], ["updated_at", "2016-03-07 15:55:23.406000"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:55:23.487856"], ["updated_at", "2016-03-07 15:55:23.487856"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 50' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' 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 50"], ["key", "Key 50"], ["secret", "Account 50"], ["canvas_account_id", "49"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:23.565933"], ["updated_at", "2016-03-07 15:55:23.565933"]]  (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", "21"], ["created_at", "2016-03-07 15:55:23.577944"], ["updated_at", "2016-03-07 15:55:23.577944"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "17"], ["created_at", "2016-03-07 15:55:23.586840"], ["updated_at", "2016-03-07 15:55:23.586840"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 51' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' 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 51"], ["key", "Key 51"], ["secret", "Account 51"], ["canvas_account_id", "50"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:23.659887"], ["updated_at", "2016-03-07 15:55:23.659887"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 52' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' 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 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:23.682566"], ["updated_at", "2016-03-07 15:55:23.682566"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "22"], ["created_at", "2016-03-07 15:55:23.696032"], ["updated_at", "2016-03-07 15:55:23.696032"]]  (0.2ms) 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", "2016-03-07 15:55:23.754731"], ["updated_at", "2016-03-07 15:55:23.754731"]]  (0.2ms) 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", "2016-03-07 15:55:23.765170"], ["updated_at", "2016-03-07 15:55:23.765170"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-03-07 15:55:23.774766"], ["updated_at", "2016-03-07 15:55:23.774766"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:55:23.847563"], ["updated_at", "2016-03-07 15:55:23.847563"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 54' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' 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 54"], ["key", "Key 54"], ["secret", "Account 54"], ["canvas_account_id", "53"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:23.928964"], ["updated_at", "2016-03-07 15:55:23.928964"]]  (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", "23"], ["created_at", "2016-03-07 15:55:23.940222"], ["updated_at", "2016-03-07 15:55:23.940222"]]  (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", "19"], ["created_at", "2016-03-07 15:55:23.948363"], ["updated_at", "2016-03-07 15:55:23.948363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 55' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' 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 55"], ["key", "Key 55"], ["secret", "Account 55"], ["canvas_account_id", "54"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:24.043604"], ["updated_at", "2016-03-07 15:55:24.043604"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2016-03-07 15:55:24.103893"], ["updated_at", "2016-03-07 15:55:24.103893"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 56' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' 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 56"], ["key", "Key 56"], ["secret", "Account 56"], ["canvas_account_id", "55"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:24.126886"], ["updated_at", "2016-03-07 15:55:24.126886"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 57' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' 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 57"], ["key", "Key 57"], ["secret", "Account 57"], ["canvas_account_id", "56"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:24.154322"], ["updated_at", "2016-03-07 15:55:24.154322"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 3], ["canvas_term_id", "24"], ["created_at", "2016-03-07 15:55:24.267730"], ["updated_at", "2016-03-07 15:55:24.267730"]]  (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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2016-03-07 15:55:24.277746"], ["updated_at", "2016-03-07 15:55:24.277746"]]  (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", "3"], ["created_at", "2016-03-07 15:55:24.286024"], ["updated_at", "2016-03-07 15:55:24.286024"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' 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 58"], ["key", "Key 58"], ["secret", "Account 58"], ["canvas_account_id", "57"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:24.370208"], ["updated_at", "2016-03-07 15:55:24.370208"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-03-07 15:55:24.386194"], ["updated_at", "2016-03-07 15:55:24.386194"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 59' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' 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 59"], ["key", "Key 59"], ["secret", "Account 59"], ["canvas_account_id", "58"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:24.410074"], ["updated_at", "2016-03-07 15:55:24.410074"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 60' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 60"], ["key", "Key 60"], ["secret", "Account 60"], ["canvas_account_id", "59"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:24.482195"], ["updated_at", "2016-03-07 15:55:24.482195"]]  (0.2ms) 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", 3], ["canvas_term_id", "25"], ["created_at", "2016-03-07 15:55:24.495618"], ["updated_at", "2016-03-07 15:55:24.495618"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-07 15:55:24.551075"], ["updated_at", "2016-03-07 15:55:24.551075"]]  (0.2ms) 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", "4"], ["created_at", "2016-03-07 15:55:24.561209"], ["updated_at", "2016-03-07 15:55:24.561209"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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 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.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 61"], ["key", "Key 61"], ["secret", "Account 61"], ["canvas_account_id", "60"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:24.650282"], ["updated_at", "2016-03-07 15:55:24.650282"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:24.662676"], ["updated_at", "2016-03-07 15:55:24.662676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 62' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' 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 62"], ["key", "Key 62"], ["secret", "Account 62"], ["canvas_account_id", "61"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:24.732434"], ["updated_at", "2016-03-07 15:55:24.732434"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 63' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 SQL (0.2ms) INSERT INTO "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-03-07 15:55:24.755603"], ["updated_at", "2016-03-07 15:55:24.755603"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 3], ["canvas_term_id", "26"], ["created_at", "2016-03-07 15:55:24.770643"], ["updated_at", "2016-03-07 15:55:24.770643"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "22"], ["created_at", "2016-03-07 15:55:24.827226"], ["updated_at", "2016-03-07 15:55:24.827226"]]  (0.2ms) 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", "5"], ["created_at", "2016-03-07 15:55:24.839352"], ["updated_at", "2016-03-07 15:55:24.839352"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 64' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' 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 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:24.921785"], ["updated_at", "2016-03-07 15:55:24.921785"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2016-03-07 15:55:24.940998"], ["updated_at", "2016-03-07 15:55:24.940998"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 65' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 65' 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 65"], ["key", "Key 65"], ["secret", "Account 65"], ["canvas_account_id", "64"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:25.019727"], ["updated_at", "2016-03-07 15:55:25.019727"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 66"], ["key", "Key 66"], ["secret", "Account 66"], ["canvas_account_id", "65"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:25.040479"], ["updated_at", "2016-03-07 15:55:25.040479"]]  (0.2ms) 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", 3], ["canvas_term_id", "27"], ["created_at", "2016-03-07 15:55:25.098937"], ["updated_at", "2016-03-07 15:55:25.098937"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:55:25.108906"], ["updated_at", "2016-03-07 15:55:25.108906"]]  (0.2ms) 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", "6"], ["created_at", "2016-03-07 15:55:25.119001"], ["updated_at", "2016-03-07 15:55:25.119001"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.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-03-07 15:55:25.131005"], ["updated_at", "2016-03-07 15:55:25.131005"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:25.191260"], ["updated_at", "2016-03-07 15:55:25.191260"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) 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 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' 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 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:25.218253"], ["updated_at", "2016-03-07 15:55:25.218253"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "test12@test.com"], ["name", "Factory User 12"], ["canvas_user_id", "12"], ["created_at", "2016-03-07 15:55:25.234179"], ["updated_at", "2016-03-07 15:55:25.234179"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 68' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' 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 68"], ["key", "Key 68"], ["secret", "Account 68"], ["canvas_account_id", "67"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:25.306035"], ["updated_at", "2016-03-07 15:55:25.306035"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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 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.2ms) INSERT INTO "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-03-07 15:55:25.381622"], ["updated_at", "2016-03-07 15:55:25.381622"]]  (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", 3], ["canvas_term_id", "28"], ["created_at", "2016-03-07 15:55:25.392468"], ["updated_at", "2016-03-07 15:55:25.392468"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "24"], ["created_at", "2016-03-07 15:55:25.402808"], ["updated_at", "2016-03-07 15:55:25.402808"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "7"], ["created_at", "2016-03-07 15:55:25.462343"], ["updated_at", "2016-03-07 15:55:25.462343"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:25.476937"], ["updated_at", "2016-03-07 15:55:25.476937"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "2"], ["created_at", "2016-03-07 15:55:25.488688"], ["updated_at", "2016-03-07 15:55:25.488688"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 70' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' 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 70"], ["key", "Key 70"], ["secret", "Account 70"], ["canvas_account_id", "69"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:25.562149"], ["updated_at", "2016-03-07 15:55:25.562149"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2016-03-07 15:55:25.582066"], ["updated_at", "2016-03-07 15:55:25.582066"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 71' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' 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 71"], ["key", "Key 71"], ["secret", "Account 71"], ["canvas_account_id", "70"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:25.603948"], ["updated_at", "2016-03-07 15:55:25.603948"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 72' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 72"], ["key", "Key 72"], ["secret", "Account 72"], ["canvas_account_id", "71"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:25.680539"], ["updated_at", "2016-03-07 15:55:25.680539"]]  (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", 3], ["canvas_term_id", "29"], ["created_at", "2016-03-07 15:55:25.747915"], ["updated_at", "2016-03-07 15:55:25.747915"]]  (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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:55:25.756405"], ["updated_at", "2016-03-07 15:55:25.756405"]]  (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", "8"], ["created_at", "2016-03-07 15:55:25.765467"], ["updated_at", "2016-03-07 15:55:25.765467"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 73' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' 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 73"], ["key", "Key 73"], ["secret", "Account 73"], ["canvas_account_id", "72"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:25.843430"], ["updated_at", "2016-03-07 15:55:25.843430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) 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 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.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 74"], ["key", "Key 74"], ["secret", "Account 74"], ["canvas_account_id", "73"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:25.921868"], ["updated_at", "2016-03-07 15:55:25.921868"]]  (0.2ms) 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", "2016-03-07 15:55:25.936287"], ["updated_at", "2016-03-07 15:55:25.936287"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:25.945757"], ["updated_at", "2016-03-07 15:55:25.945757"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 75' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' 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 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:26.029418"], ["updated_at", "2016-03-07 15:55:26.029418"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) 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.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 76"], ["key", "Key 76"], ["secret", "Account 76"], ["canvas_account_id", "75"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:26.120503"], ["updated_at", "2016-03-07 15:55:26.120503"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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 77' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' 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 77"], ["key", "Key 77"], ["secret", "Account 77"], ["canvas_account_id", "76"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:26.192630"], ["updated_at", "2016-03-07 15:55:26.192630"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:55:26.210611"], ["updated_at", "2016-03-07 15:55:26.210611"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:26.223579"], ["updated_at", "2016-03-07 15:55:26.223579"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 78' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' 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 78"], ["key", "Key 78"], ["secret", "Account 78"], ["canvas_account_id", "77"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:26.294559"], ["updated_at", "2016-03-07 15:55:26.294559"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (45.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 79' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:55:26.376842"], ["updated_at", "2016-03-07 15:55:26.376842"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.4ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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.8ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:26.477377"], ["updated_at", "2016-03-07 15:55:26.477377"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:26.490251"], ["id", 1]]  (0.2ms) 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.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 80' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 80' 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 80"], ["key", "Key 80"], ["secret", "Account 80"], ["canvas_account_id", "79"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:26.573013"], ["updated_at", "2016-03-07 15:55:26.573013"]]  (0.2ms) 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.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", "2016-03-07 15:55:26.595587"], ["updated_at", "2016-03-07 15:55:26.595587"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:26.606311"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 81' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' 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 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:26.685120"], ["updated_at", "2016-03-07 15:55:26.685120"]]  (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::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.3ms) 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-03-07 15:55:26.773790"], ["updated_at", "2016-03-07 15:55:26.773790"]]  (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", "2016-03-07 15:55:26.782814"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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-03-07 15:55:26.881963"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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.2ms) 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-03-07 15:55:26.903744"], ["updated_at", "2016-03-07 15:55:26.903744"]]  (0.2ms) 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.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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:26.964152"], ["updated_at", "2016-03-07 15:55:26.964152"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_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.2ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:26.982947"], ["updated_at", "2016-03-07 15:55:26.982947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.3ms) 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) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2016-03-07 15:55:26.996901"], ["id", 1]]  (0.1ms) 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", "Completed"], ["updated_at", "2016-03-07 15:55:27.054043"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (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 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.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 82"], ["key", "Key 82"], ["secret", "Account 82"], ["canvas_account_id", "81"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:27.139144"], ["updated_at", "2016-03-07 15:55:27.139144"]]  (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::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.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", "2016-03-07 15:55:27.158636"], ["updated_at", "2016-03-07 15:55:27.158636"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:27.213515"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.3ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-03-07 15:55:27.233315"], ["updated_at", "2016-03-07 15:55:27.233315"]]  (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"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-03-07 15:55:27.301168"], ["updated_at", "2016-03-07 15:55:27.301168"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.3ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_courses"  (1.6ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.2ms) 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 83' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' 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 83"], ["key", "Key 83"], ["secret", "Account 83"], ["canvas_account_id", "82"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:27.337638"], ["updated_at", "2016-03-07 15:55:27.337638"]]  (0.2ms) 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.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", "2016-03-07 15:55:27.407622"], ["updated_at", "2016-03-07 15:55:27.407622"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:27.483756"], ["id", 1]]  (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", "1"]]  (0.1ms) 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-03-07 15:55:27.498830"], ["updated_at", "2016-03-07 15:55:27.498830"]]  (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.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-03-07 15:55:27.510603"], ["updated_at", "2016-03-07 15:55:27.510603"]]  (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", "3"]]  (0.2ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:27.565991"], ["updated_at", "2016-03-07 15:55:27.565991"]]  (0.1ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 84' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' 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 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:27.601521"], ["updated_at", "2016-03-07 15:55:27.601521"]]  (0.2ms) 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.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", "2016-03-07 15:55:27.676944"], ["updated_at", "2016-03-07 15:55:27.676944"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:27.687972"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) 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.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 85"], ["key", "Key 85"], ["secret", "Account 85"], ["canvas_account_id", "84"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:27.763527"], ["updated_at", "2016-03-07 15:55:27.763527"]]  (0.2ms) 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.2ms) 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", "2016-03-07 15:55:27.839621"], ["updated_at", "2016-03-07 15:55:27.839621"]]  (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", "2016-03-07 15:55:27.848659"], ["id", 1]]  (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::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  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' 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 86"], ["key", "Key 86"], ["secret", "Account 86"], ["canvas_account_id", "85"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:27.926305"], ["updated_at", "2016-03-07 15:55:27.926305"]]  (0.2ms) 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.2ms) 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-03-07 15:55:27.948712"], ["updated_at", "2016-03-07 15:55:27.948712"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:27.960197"], ["id", 1]]  (0.2ms) 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  (0.2ms) 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-03-07 15:55:28.027318"], ["id", 1]]  (0.2ms) 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.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 87' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' 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 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:28.128827"], ["updated_at", "2016-03-07 15:55:28.128827"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 88' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:55:28.203813"], ["updated_at", "2016-03-07 15:55:28.203813"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:28.217346"], ["updated_at", "2016-03-07 15:55:28.217346"]]  (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", "26"], ["created_at", "2016-03-07 15:55:28.226501"], ["updated_at", "2016-03-07 15:55:28.226501"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.4ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) 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", "2016-03-07 15:55:28.287921"], ["updated_at", "2016-03-07 15:55:28.287921"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:28.301039"], ["id", 1]]  (0.2ms) 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  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 89' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' 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 89"], ["key", "Key 89"], ["secret", "Account 89"], ["canvas_account_id", "88"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:28.396772"], ["updated_at", "2016-03-07 15:55:28.396772"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:55:28.469687"], ["updated_at", "2016-03-07 15:55:28.469687"]]  (0.2ms) 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", 2], ["canvas_term_id", "32"], ["created_at", "2016-03-07 15:55:28.484150"], ["updated_at", "2016-03-07 15:55:28.484150"]]  (0.2ms) 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", "27"], ["created_at", "2016-03-07 15:55:28.546676"], ["updated_at", "2016-03-07 15:55:28.546676"]]  (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.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-03-07 15:55:28.563128"], ["updated_at", "2016-03-07 15:55:28.563128"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:28.572441"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 91' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' 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 91"], ["key", "Key 91"], ["secret", "Account 91"], ["canvas_account_id", "90"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:28.659477"], ["updated_at", "2016-03-07 15:55:28.659477"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 92' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' 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 92"], ["key", "Key 92"], ["secret", "Account 92"], ["canvas_account_id", "91"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:28.734386"], ["updated_at", "2016-03-07 15:55:28.734386"]]  (0.2ms) 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", "33"], ["created_at", "2016-03-07 15:55:28.748949"], ["updated_at", "2016-03-07 15:55:28.748949"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "28"], ["created_at", "2016-03-07 15:55:28.759318"], ["updated_at", "2016-03-07 15:55:28.759318"]]  (0.2ms) 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.2ms) 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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:28.827747"], ["updated_at", "2016-03-07 15:55:28.827747"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :include_complete\n"], ["updated_at", "2016-03-07 15:55:28.897899"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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 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", "2016-03-07 15:55:28.937282"], ["updated_at", "2016-03-07 15:55:28.937282"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 94' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 94' 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 94"], ["key", "Key 94"], ["secret", "Account 94"], ["canvas_account_id", "93"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:29.015253"], ["updated_at", "2016-03-07 15:55:29.015253"]]  (0.2ms) 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", "34"], ["created_at", "2016-03-07 15:55:29.031144"], ["updated_at", "2016-03-07 15:55:29.031144"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "29"], ["created_at", "2016-03-07 15:55:29.042024"], ["updated_at", "2016-03-07 15:55:29.042024"]]  (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.2ms) 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", "2016-03-07 15:55:29.111958"], ["updated_at", "2016-03-07 15:55:29.111958"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:29.127078"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 95' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' 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 95"], ["key", "Key 95"], ["secret", "Account 95"], ["canvas_account_id", "94"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:29.270823"], ["updated_at", "2016-03-07 15:55:29.270823"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 96' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 96' 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 96"], ["key", "Key 96"], ["secret", "Account 96"], ["canvas_account_id", "95"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:29.294690"], ["updated_at", "2016-03-07 15:55:29.294690"]]  (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", "35"], ["created_at", "2016-03-07 15:55:29.305769"], ["updated_at", "2016-03-07 15:55:29.305769"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "30"], ["created_at", "2016-03-07 15:55:29.362606"], ["updated_at", "2016-03-07 15:55:29.362606"]]  (0.2ms) 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.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", "2016-03-07 15:55:29.382636"], ["updated_at", "2016-03-07 15:55:29.382636"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:29.394414"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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-03-07 15:55:29.552023"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.3ms) 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.3ms) 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", "2016-03-07 15:55:29.577975"], ["updated_at", "2016-03-07 15:55:29.577975"]]  (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"."id" != 1) [["coalescing_panda_course_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 12.5], ["updated_at", "2016-03-07 15:55:29.649205"], ["id", 1]]  (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", "1"]]  (0.1ms) 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-03-07 15:55:29.664656"], ["updated_at", "2016-03-07 15:55:29.664656"]]  (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.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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:29.676906"], ["updated_at", "2016-03-07 15:55:29.676906"]]  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]]  (0.2ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:29.737638"], ["updated_at", "2016-03-07 15:55:29.737638"]]  (0.2ms) 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 (1, 2, 3)) [["coalescing_panda_course_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 25.0], ["updated_at", "2016-03-07 15:55:29.764370"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.4ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "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.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.3ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "2"]]  (0.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.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.2ms) 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.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.5ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2016-03-07 15:55:30.068815"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (1.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.2ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2016-03-07 15:55:30.093392"], ["updated_at", "2016-03-07 15:55:30.093392"]]  (0.3ms) 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"."id" != 1) [["coalescing_panda_course_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2016-03-07 15:55:30.160333"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.4ms) 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.3ms) 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.7ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_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.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.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", "2"]] 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.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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.5ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2016-03-07 15:55:30.426310"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.4ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2016-03-07 15:55:30.446009"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (1.3ms) SELECT "coalescing_panda_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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 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"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2016-03-07 15:55:30.551305"], ["updated_at", "2016-03-07 15:55:30.551305"]]  (0.2ms) 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", "5"]] 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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-03-07 15:55:30.680532"], ["updated_at", "2016-03-07 15:55:30.680532"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.3ms) 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) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 87.5], ["updated_at", "2016-03-07 15:55:30.692828"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.3ms) 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 (1.3ms) 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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] 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.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2016-03-07 15:55:30.795299"], ["updated_at", "2016-03-07 15:55:30.795299"]]  (0.2ms) 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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] 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", "3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 3], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2016-03-07 15:55:30.823402"], ["updated_at", "2016-03-07 15:55:30.823402"]]  (0.1ms) 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", "13"]] 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" = ? 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.2ms) SAVEPOINT active_record_1  (0.1ms) 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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] 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", "3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.4ms) 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.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2016-03-07 15:55:30.966172"], ["id", 1]]  (0.1ms) 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", "Completed"], ["updated_at", "2016-03-07 15:55:30.975759"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Section Load (0.3ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"  (0.2ms) 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 97' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) 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", "2016-03-07 15:55:31.132682"], ["updated_at", "2016-03-07 15:55:31.132682"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 98' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:55:31.157572"], ["updated_at", "2016-03-07 15:55:31.157572"]]  (0.2ms) 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", 2], ["canvas_term_id", "36"], ["created_at", "2016-03-07 15:55:31.171317"], ["updated_at", "2016-03-07 15:55:31.171317"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "31"], ["created_at", "2016-03-07 15:55:31.229136"], ["updated_at", "2016-03-07 15:55:31.229136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.4ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.3ms) 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-03-07 15:55:31.252781"], ["updated_at", "2016-03-07 15:55:31.252781"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:31.264122"], ["id", 1]]  (0.2ms) 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.2ms) 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-03-07 15:55:31.325240"], ["updated_at", "2016-03-07 15:55:31.325240"]]  (0.2ms) 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"."id" != 1) [["coalescing_panda_course_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_sections"  (1.7ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (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 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.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", "2016-03-07 15:55:31.434035"], ["updated_at", "2016-03-07 15:55:31.434035"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 100' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 100' 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 100"], ["key", "Key 100"], ["secret", "Account 100"], ["canvas_account_id", "99"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:31.508731"], ["updated_at", "2016-03-07 15:55:31.508731"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "37"], ["created_at", "2016-03-07 15:55:31.525175"], ["updated_at", "2016-03-07 15:55:31.525175"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-03-07 15:55:31.535343"], ["updated_at", "2016-03-07 15:55:31.535343"]]  (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.2ms) 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", "2016-03-07 15:55:31.599331"], ["updated_at", "2016-03-07 15:55:31.599331"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:31.611147"], ["id", 1]]  (0.2ms) 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.2ms) 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-03-07 15:55:31.628595"], ["updated_at", "2016-03-07 15:55:31.628595"]]  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]]  (0.2ms) 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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:31.687208"], ["updated_at", "2016-03-07 15:55:31.687208"]]  (0.2ms) 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.1ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:31.702005"], ["updated_at", "2016-03-07 15:55:31.702005"]]  (0.1ms) 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]]  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (1.7ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Enrollment Load (0.3ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.2ms) 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 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.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 101"], ["key", "Key 101"], ["secret", "Account 101"], ["canvas_account_id", "100"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:31.861239"], ["updated_at", "2016-03-07 15:55:31.861239"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 102' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' 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 102"], ["key", "Key 102"], ["secret", "Account 102"], ["canvas_account_id", "101"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:31.888011"], ["updated_at", "2016-03-07 15:55:31.888011"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "38"], ["created_at", "2016-03-07 15:55:31.949204"], ["updated_at", "2016-03-07 15:55:31.949204"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "33"], ["created_at", "2016-03-07 15:55:31.959463"], ["updated_at", "2016-03-07 15:55:31.959463"]]  (0.2ms) 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.2ms) 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-03-07 15:55:31.979074"], ["updated_at", "2016-03-07 15:55:31.979074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:31.990329"], ["id", 1]]  (0.2ms) 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.2ms) 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-03-07 15:55:32.053062"], ["updated_at", "2016-03-07 15:55:32.053062"]]  (0.2ms) 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.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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.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-03-07 15:55:32.127231"], ["updated_at", "2016-03-07 15:55:32.127231"]]  (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.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-03-07 15:55:32.139393"], ["updated_at", "2016-03-07 15:55:32.139393"]]  (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", "3"]]  (0.1ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:32.151390"], ["updated_at", "2016-03-07 15:55:32.151390"]]  (0.2ms) 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "2"]]  (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", "2"], ["coalescing_panda_user_id", 2], ["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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.2ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' 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 103"], ["key", "Key 103"], ["secret", "Account 103"], ["canvas_account_id", "102"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:32.558497"], ["updated_at", "2016-03-07 15:55:32.558497"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 104' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' 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 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:32.583044"], ["updated_at", "2016-03-07 15:55:32.583044"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "39"], ["created_at", "2016-03-07 15:55:32.597090"], ["updated_at", "2016-03-07 15:55:32.597090"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "34"], ["created_at", "2016-03-07 15:55:32.655209"], ["updated_at", "2016-03-07 15:55:32.655209"]]  (0.2ms) 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.2ms) 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-03-07 15:55:32.675135"], ["updated_at", "2016-03-07 15:55:32.675135"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-03-07 15:55:32.686386"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupCategory Load (0.3ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_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.2ms) SAVEPOINT active_record_1 SQL (1.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-03-07 15:55:32.760071"], ["updated_at", "2016-03-07 15:55:32.760071"]]  (0.2ms) 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.3ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"  (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 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.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 105"], ["key", "Key 105"], ["secret", "Account 105"], ["canvas_account_id", "104"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:32.865580"], ["updated_at", "2016-03-07 15:55:32.865580"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:55:32.936343"], ["updated_at", "2016-03-07 15:55:32.936343"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "40"], ["created_at", "2016-03-07 15:55:32.949861"], ["updated_at", "2016-03-07 15:55:32.949861"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "35"], ["created_at", "2016-03-07 15:55:32.961727"], ["updated_at", "2016-03-07 15:55:32.961727"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) 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", "2016-03-07 15:55:33.037216"], ["updated_at", "2016-03-07 15:55:33.037216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:33.049363"], ["id", 1]]  (0.1ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2016-03-07 15:55:33.116322"], ["updated_at", "2016-03-07 15:55:33.116322"]]  (0.2ms) 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.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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.1ms) 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", "2"]] 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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_assignments" CoalescingPanda::Assignment Load (0.3ms) 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.2ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]]  (1.5ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::AssignmentGroup Load (0.3ms) SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.2ms) 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 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.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 107"], ["key", "Key 107"], ["secret", "Account 107"], ["canvas_account_id", "106"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:33.388611"], ["updated_at", "2016-03-07 15:55:33.388611"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 108' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' 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 108"], ["key", "Key 108"], ["secret", "Account 108"], ["canvas_account_id", "107"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:33.469674"], ["updated_at", "2016-03-07 15:55:33.469674"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "41"], ["created_at", "2016-03-07 15:55:33.484722"], ["updated_at", "2016-03-07 15:55:33.484722"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "36"], ["created_at", "2016-03-07 15:55:33.554151"], ["updated_at", "2016-03-07 15:55:33.554151"]]  (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.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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:55:33.571711"], ["updated_at", "2016-03-07 15:55:33.571711"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:33.585192"], ["id", 1]]  (0.2ms) 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.1ms) 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", "2016-03-07 15:55:33.643312"], ["updated_at", "2016-03-07 15:55:33.643312"]]  (0.2ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (1.5ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Submission Load (0.3ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"  (0.2ms) 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 109' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' 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 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:33.741104"], ["updated_at", "2016-03-07 15:55:33.741104"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 110' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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-03-07 15:55:33.773598"], ["updated_at", "2016-03-07 15:55:33.773598"]]  (0.2ms) 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", "42"], ["created_at", "2016-03-07 15:55:33.835405"], ["updated_at", "2016-03-07 15:55:33.835405"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", "37"], ["created_at", "2016-03-07 15:55:33.847934"], ["updated_at", "2016-03-07 15:55:33.847934"]]  (0.2ms) 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.2ms) 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-03-07 15:55:33.926212"], ["updated_at", "2016-03-07 15:55:33.926212"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:33.935789"], ["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.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-03-07 15:55:33.949727"], ["updated_at", "2016-03-07 15:55:33.949727"]]  (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"."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.2ms) 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-03-07 15:55:34.010800"], ["updated_at", "2016-03-07 15:55:34.010800"]]  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]]  (0.2ms) 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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:34.027553"], ["updated_at", "2016-03-07 15:55:34.027553"]]  (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", "3"]]  (0.3ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:34.043054"], ["updated_at", "2016-03-07 15:55:34.043054"]]  (0.1ms) 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) 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.2ms) 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" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.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.2ms) 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.2ms) 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]] 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.3ms) 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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) 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.2ms) 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"."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.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" = ? 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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.2ms) 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.3ms) 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.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.3ms) 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.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-03-07 15:55:34.626614"], ["updated_at", "2016-03-07 15:55:34.626614"]]  (0.1ms) RELEASE SAVEPOINT active_record_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", "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"]] 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.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-03-07 15:55:34.648271"], ["updated_at", "2016-03-07 15:55:34.648271"]]  (0.1ms) RELEASE SAVEPOINT active_record_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", "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.2ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-03-07 15:55:34.722749"], ["updated_at", "2016-03-07 15:55:34.722749"]]  (0.1ms) RELEASE SAVEPOINT active_record_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", "2"]] 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"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]] 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"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-03-07 15:55:34.802989"], ["updated_at", "2016-03-07 15:55:34.802989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (2.0ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Group Load (0.3ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.2ms) 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 111' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' 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 111"], ["key", "Key 111"], ["secret", "Account 111"], ["canvas_account_id", "110"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:34.905490"], ["updated_at", "2016-03-07 15:55:34.905490"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 112"], ["key", "Key 112"], ["secret", "Account 112"], ["canvas_account_id", "111"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:34.990875"], ["updated_at", "2016-03-07 15:55:34.990875"]]  (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", "43"], ["created_at", "2016-03-07 15:55:35.002222"], ["updated_at", "2016-03-07 15:55:35.002222"]]  (0.2ms) 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", "38"], ["created_at", "2016-03-07 15:55:35.011647"], ["updated_at", "2016-03-07 15:55:35.011647"]]  (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.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", "2016-03-07 15:55:35.075080"], ["updated_at", "2016-03-07 15:55:35.075080"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", "2016-03-07 15:55:35.093040"], ["id", 1]]  (0.1ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2016-03-07 15:55:35.110638"], ["updated_at", "2016-03-07 15:55:35.110638"]]  (0.2ms) 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.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" = ? 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.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "coalescing_panda_group_category_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["coalescing_panda_group_category_id", 1], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2016-03-07 15:55:35.184694"], ["updated_at", "2016-03-07 15:55:35.184694"]]  (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.3ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-03-07 15:55:35.205166"], ["updated_at", "2016-03-07 15:55:35.205166"]]  (0.2ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.3ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]]  (1.4ms) rollback transaction  (0.3ms) begin transaction CoalescingPanda::Group Load (0.3ms) 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 113' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' 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 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:35.352415"], ["updated_at", "2016-03-07 15:55:35.352415"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 114' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 114' 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 114"], ["key", "Key 114"], ["secret", "Account 114"], ["canvas_account_id", "113"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:35.423625"], ["updated_at", "2016-03-07 15:55:35.423625"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "44"], ["created_at", "2016-03-07 15:55:35.438107"], ["updated_at", "2016-03-07 15:55:35.438107"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "39"], ["created_at", "2016-03-07 15:55:35.450082"], ["updated_at", "2016-03-07 15:55:35.450082"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) 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", "2016-03-07 15:55:35.517648"], ["updated_at", "2016-03-07 15:55:35.517648"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:35.529142"], ["id", 1]]  (0.4ms) 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.2ms) 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-03-07 15:55:35.550152"], ["updated_at", "2016-03-07 15:55:35.550152"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.3ms) 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.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" = ? 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.5ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:35.615183"], ["updated_at", "2016-03-07 15:55:35.615183"]]  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]]  (0.2ms) 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-03-07 15:55:35.633613"], ["updated_at", "2016-03-07 15:55:35.633613"]]  (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", "3"]]  (0.1ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:35.707377"], ["updated_at", "2016-03-07 15:55:35.707377"]]  (0.1ms) 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.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.2ms) 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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "2"]]  (0.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.5ms) 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.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.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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2016-03-07 15:55:36.034609"], ["updated_at", "2016-03-07 15:55:36.034609"]]  (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.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-03-07 15:55:36.052039"], ["updated_at", "2016-03-07 15:55:36.052039"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.3ms) 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.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]]  (1.6ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::GroupMembership Load (0.3ms) SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"  (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 115' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' 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 115"], ["key", "Key 115"], ["secret", "Account 115"], ["canvas_account_id", "114"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:36.148500"], ["updated_at", "2016-03-07 15:55:36.148500"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 116' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' 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 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:36.221187"], ["updated_at", "2016-03-07 15:55:36.221187"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "45"], ["created_at", "2016-03-07 15:55:36.235175"], ["updated_at", "2016-03-07 15:55:36.235175"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "40"], ["created_at", "2016-03-07 15:55:36.245607"], ["updated_at", "2016-03-07 15:55:36.245607"]]  (0.2ms) 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.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", "2016-03-07 15:55:36.316303"], ["updated_at", "2016-03-07 15:55:36.316303"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:36.386120"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.3ms) 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.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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-03-07 15:55:36.416017"], ["updated_at", "2016-03-07 15:55:36.416017"]]  (0.1ms) 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.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.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", "3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-03-07 15:55:36.482016"], ["updated_at", "2016-03-07 15:55:36.482016"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.4ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (1.4ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Enrollment Load (0.4ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.2ms) 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 117' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' 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 117"], ["key", "Key 117"], ["secret", "Account 117"], ["canvas_account_id", "116"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:36.580495"], ["updated_at", "2016-03-07 15:55:36.580495"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 118' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' 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 118"], ["key", "Key 118"], ["secret", "Account 118"], ["canvas_account_id", "117"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:36.603048"], ["updated_at", "2016-03-07 15:55:36.603048"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:36.661409"], ["updated_at", "2016-03-07 15:55:36.661409"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "41"], ["created_at", "2016-03-07 15:55:36.671386"], ["updated_at", "2016-03-07 15:55:36.671386"]]  (0.2ms) 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.2ms) 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-03-07 15:55:36.745423"], ["updated_at", "2016-03-07 15:55:36.745423"]]  (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-03-07 15:55:36.755012"], ["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.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-03-07 15:55:36.768914"], ["updated_at", "2016-03-07 15:55:36.768914"]]  (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.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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]]  (0.2ms) 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-03-07 15:55:36.828103"], ["updated_at", "2016-03-07 15:55:36.828103"]]  (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.3ms) 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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:36.843638"], ["updated_at", "2016-03-07 15:55:36.843638"]]  (0.2ms) 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.2ms) SAVEPOINT active_record_1 SQL (47.7ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:36.861379"], ["updated_at", "2016-03-07 15:55:36.861379"]]  (0.2ms) 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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.3ms) 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "2"]]  (0.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.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.2ms) 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.1ms) 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]] 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.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n"], ["updated_at", "2016-03-07 15:55:37.183909"], ["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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.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.3ms) SAVEPOINT active_record_1  (0.2ms) 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "3"]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.4ms) 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.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.3ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.6ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Enrollment Load (0.3ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.2ms) 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 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.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 119"], ["key", "Key 119"], ["secret", "Account 119"], ["canvas_account_id", "118"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:37.452128"], ["updated_at", "2016-03-07 15:55:37.452128"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 120' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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-03-07 15:55:37.525264"], ["updated_at", "2016-03-07 15:55:37.525264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "47"], ["created_at", "2016-03-07 15:55:37.540691"], ["updated_at", "2016-03-07 15:55:37.540691"]]  (0.2ms) 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", "2016-03-07 15:55:37.551594"], ["updated_at", "2016-03-07 15:55:37.551594"]]  (0.3ms) 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.2ms) 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-03-07 15:55:37.576067"], ["updated_at", "2016-03-07 15:55:37.576067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:37.630444"], ["id", 1]]  (0.2ms) 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.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-03-07 15:55:37.647520"], ["updated_at", "2016-03-07 15:55:37.647520"]]  (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.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.3ms) 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-03-07 15:55:37.711297"], ["updated_at", "2016-03-07 15:55:37.711297"]]  (0.2ms) 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.3ms) 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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:37.729813"], ["updated_at", "2016-03-07 15:55:37.729813"]]  (0.2ms) 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"."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.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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:37.807948"], ["updated_at", "2016-03-07 15:55:37.807948"]]  (0.1ms) 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.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.2ms) 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.2ms) 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.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.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.2ms) 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.3ms) 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.4ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-03-07 15:55:38.066152"], ["id", 1]]  (0.2ms) 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.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", "2"]]  (0.2ms) SAVEPOINT active_record_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" = ? 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.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.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.4ms) 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.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) 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.3ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (1.6ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Enrollment Load (45.3ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.2ms) 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 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' 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 121"], ["key", "Key 121"], ["secret", "Account 121"], ["canvas_account_id", "120"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:38.337961"], ["updated_at", "2016-03-07 15:55:38.337961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' 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 122"], ["key", "Key 122"], ["secret", "Account 122"], ["canvas_account_id", "121"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:38.361880"], ["updated_at", "2016-03-07 15:55:38.361880"]]  (48.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "48"], ["created_at", "2016-03-07 15:55:38.429378"], ["updated_at", "2016-03-07 15:55:38.429378"]]  (0.2ms) 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", "43"], ["created_at", "2016-03-07 15:55:38.439704"], ["updated_at", "2016-03-07 15:55:38.439704"]]  (0.3ms) 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.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", "2016-03-07 15:55:38.523586"], ["updated_at", "2016-03-07 15:55:38.523586"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:38.534989"], ["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.2ms) 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-03-07 15:55:38.552185"], ["updated_at", "2016-03-07 15:55:38.552185"]]  (47.2ms) 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.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" = ? 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.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-03-07 15:55:38.616717"], ["updated_at", "2016-03-07 15:55:38.616717"]]  (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.2ms) 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-03-07 15:55:38.630520"], ["updated_at", "2016-03-07 15:55:38.630520"]]  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]]  (0.2ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:38.645449"], ["updated_at", "2016-03-07 15:55:38.645449"]]  (0.2ms) 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.2ms) 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.3ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "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.2ms) 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]] 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.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:55:38.951268"], ["id", 1]]  (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  (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", "3"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.4ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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.3ms) 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.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.3ms) 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.3ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.3ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] SQL (0.2ms) DELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.7ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Enrollment Load (0.3ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.2ms) 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 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.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 123"], ["key", "Key 123"], ["secret", "Account 123"], ["canvas_account_id", "122"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:39.200389"], ["updated_at", "2016-03-07 15:55:39.200389"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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 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.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 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:39.220379"], ["updated_at", "2016-03-07 15:55:39.220379"]]  (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", "49"], ["created_at", "2016-03-07 15:55:39.231523"], ["updated_at", "2016-03-07 15:55:39.231523"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "44"], ["created_at", "2016-03-07 15:55:39.287638"], ["updated_at", "2016-03-07 15:55:39.287638"]]  (0.2ms) 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.2ms) 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-03-07 15:55:39.307223"], ["updated_at", "2016-03-07 15:55:39.307223"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:39.319341"], ["id", 1]]  (0.2ms) 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.2ms) 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-03-07 15:55:39.385160"], ["updated_at", "2016-03-07 15:55:39.385160"]]  (0.2ms) 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.3ms) 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-03-07 15:55:39.404234"], ["updated_at", "2016-03-07 15:55:39.404234"]]  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]]  (0.2ms) 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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:39.470514"], ["updated_at", "2016-03-07 15:55:39.470514"]]  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]]  (0.2ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:55:39.488643"], ["updated_at", "2016-03-07 15:55:39.488643"]]  (0.2ms) 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.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.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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.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", "2"]]  (0.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.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", "3"]]  (0.2ms) 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.1ms) 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]] 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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-03-07 15:55:39.756184"], ["id", 1]]  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]]  (0.3ms) SAVEPOINT active_record_1  (0.2ms) 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.2ms) 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.1ms) 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2016-03-07 15:55:39.918403"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.6ms) 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.3ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]]  (1.7ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 125' 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 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:40.021839"], ["updated_at", "2016-03-07 15:55:40.021839"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 126' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 126' 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 126"], ["key", "Key 126"], ["secret", "Account 126"], ["canvas_account_id", "125"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:40.096373"], ["updated_at", "2016-03-07 15:55:40.096373"]]  (0.2ms) 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", "50"], ["created_at", "2016-03-07 15:55:40.109780"], ["updated_at", "2016-03-07 15:55:40.109780"]]  (0.2ms) 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", "45"], ["created_at", "2016-03-07 15:55:40.119855"], ["updated_at", "2016-03-07 15:55:40.119855"]]  (0.2ms) 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.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-03-07 15:55:40.185701"], ["updated_at", "2016-03-07 15:55:40.185701"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:40.196577"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:55:40.298538"], ["updated_at", "2016-03-07 15:55:40.298538"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 128"], ["key", "Key 128"], ["secret", "Account 128"], ["canvas_account_id", "127"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:40.369480"], ["updated_at", "2016-03-07 15:55:40.369480"]]  (0.2ms) 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", "51"], ["created_at", "2016-03-07 15:55:40.382411"], ["updated_at", "2016-03-07 15:55:40.382411"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:40.393436"], ["updated_at", "2016-03-07 15:55:40.393436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) 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", "2016-03-07 15:55:40.465250"], ["updated_at", "2016-03-07 15:55:40.465250"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:40.478365"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 129' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 129' 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 129"], ["key", "Key 129"], ["secret", "Account 129"], ["canvas_account_id", "128"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:40.577331"], ["updated_at", "2016-03-07 15:55:40.577331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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 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.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 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:40.663219"], ["updated_at", "2016-03-07 15:55:40.663219"]]  (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", "52"], ["created_at", "2016-03-07 15:55:40.674916"], ["updated_at", "2016-03-07 15:55:40.674916"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "47"], ["created_at", "2016-03-07 15:55:40.686597"], ["updated_at", "2016-03-07 15:55:40.686597"]]  (0.2ms) 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.2ms) 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", "2016-03-07 15:55:40.755356"], ["updated_at", "2016-03-07 15:55:40.755356"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:40.766905"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 131' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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-03-07 15:55:40.869230"], ["updated_at", "2016-03-07 15:55:40.869230"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 132' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 132' 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 132"], ["key", "Key 132"], ["secret", "Account 132"], ["canvas_account_id", "131"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:40.939439"], ["updated_at", "2016-03-07 15:55:40.939439"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "53"], ["created_at", "2016-03-07 15:55:40.952088"], ["updated_at", "2016-03-07 15:55:40.952088"]]  (0.2ms) 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", "48"], ["created_at", "2016-03-07 15:55:41.021858"], ["updated_at", "2016-03-07 15:55:41.021858"]]  (0.2ms) 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.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-03-07 15:55:41.038947"], ["updated_at", "2016-03-07 15:55:41.038947"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:41.048699"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 133' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 133' 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 133"], ["key", "Key 133"], ["secret", "Account 133"], ["canvas_account_id", "132"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:41.192595"], ["updated_at", "2016-03-07 15:55:41.192595"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 134' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 134' 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 134"], ["key", "Key 134"], ["secret", "Account 134"], ["canvas_account_id", "133"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:41.215440"], ["updated_at", "2016-03-07 15:55:41.215440"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "54"], ["created_at", "2016-03-07 15:55:41.229074"], ["updated_at", "2016-03-07 15:55:41.229074"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "49"], ["created_at", "2016-03-07 15:55:41.290252"], ["updated_at", "2016-03-07 15:55:41.290252"]]  (0.2ms) 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.2ms) 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-03-07 15:55:41.372024"], ["updated_at", "2016-03-07 15:55:41.372024"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-03-07 15:55:41.381960"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 135' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 135' 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 135"], ["key", "Key 135"], ["secret", "Account 135"], ["canvas_account_id", "134"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:41.477067"], ["updated_at", "2016-03-07 15:55:41.477067"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 136' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 136' 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 136"], ["key", "Key 136"], ["secret", "Account 136"], ["canvas_account_id", "135"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:41.505184"], ["updated_at", "2016-03-07 15:55:41.505184"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "55"], ["created_at", "2016-03-07 15:55:41.567710"], ["updated_at", "2016-03-07 15:55:41.567710"]]  (0.2ms) 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", "50"], ["created_at", "2016-03-07 15:55:41.578068"], ["updated_at", "2016-03-07 15:55:41.578068"]]  (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.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", "2016-03-07 15:55:41.600591"], ["updated_at", "2016-03-07 15:55:41.600591"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", "2016-03-07 15:55:41.662962"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 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.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", "2016-03-07 15:55:41.773806"], ["updated_at", "2016-03-07 15:55:41.773806"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 138"], ["key", "Key 138"], ["secret", "Account 138"], ["canvas_account_id", "137"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:41.839957"], ["updated_at", "2016-03-07 15:55:41.839957"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "56"], ["created_at", "2016-03-07 15:55:41.854268"], ["updated_at", "2016-03-07 15:55:41.854268"]]  (0.2ms) 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", "51"], ["created_at", "2016-03-07 15:55:41.864607"], ["updated_at", "2016-03-07 15:55:41.864607"]]  (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.2ms) 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", "2016-03-07 15:55:41.928056"], ["updated_at", "2016-03-07 15:55:41.928056"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:41.939033"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 139' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 139' 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 139"], ["key", "Key 139"], ["secret", "Account 139"], ["canvas_account_id", "138"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:42.039759"], ["updated_at", "2016-03-07 15:55:42.039759"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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 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.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 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:42.122249"], ["updated_at", "2016-03-07 15:55:42.122249"]]  (0.2ms) 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", "57"], ["created_at", "2016-03-07 15:55:42.138116"], ["updated_at", "2016-03-07 15:55:42.138116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "52"], ["created_at", "2016-03-07 15:55:42.147549"], ["updated_at", "2016-03-07 15:55:42.147549"]]  (0.2ms) 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.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", "2016-03-07 15:55:42.215176"], ["updated_at", "2016-03-07 15:55:42.215176"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:42.226893"], ["id", 1]]  (0.2ms) 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.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 141' 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 141"], ["key", "Key 141"], ["secret", "Account 141"], ["canvas_account_id", "140"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:42.333966"], ["updated_at", "2016-03-07 15:55:42.333966"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 142' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:55:42.404925"], ["updated_at", "2016-03-07 15:55:42.404925"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", "58"], ["created_at", "2016-03-07 15:55:42.483637"], ["updated_at", "2016-03-07 15:55:42.483637"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "53"], ["created_at", "2016-03-07 15:55:42.495573"], ["updated_at", "2016-03-07 15:55:42.495573"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) 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-03-07 15:55:42.517662"], ["updated_at", "2016-03-07 15:55:42.517662"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:55:42.573759"], ["id", 1]]  (0.2ms) 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  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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-03-07 15:55:42.597527"], ["id", 1]]  (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  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) 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 2ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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.2ms) 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", "2016-03-07 15:55:56.787399"], ["updated_at", "2016-03-07 15:55:56.787399"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.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", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:55:56.832559"], ["updated_at", "2016-03-07 15:55:56.832559"]]  (0.2ms) 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.3ms) 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.2ms) 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" = '1' AND "coalescing_panda_canvas_api_auths"."api_domain" = 'foo.com') LIMIT 1 SQL (0.3ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("api_token", "refresh_token", "expires_at", "user_id", "api_domain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["api_token", "token"], ["refresh_token", "token"], ["expires_at", "2016-03-07 16:55:56.983045"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:55:56.987859"], ["updated_at", "2016-03-07 15:55:56.987859"]]  (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 (1.0ms) Completed 200 OK in 118ms (Views: 14.0ms | ActiveRecord: 2.3ms) CoalescingPanda::CanvasApiAuth Load (0.4ms) 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.2ms) begin transaction Processing by CoalescingPanda::Oauth2Controller#redirect as HTML Parameters: {"error"=>"your face"} Rendered /Users/byoung/rails/coalescing_panda/app/views/coalescing_panda/oauth2/redirect.html.haml within layouts/coalescing_panda/application (0.9ms) Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (48.5ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 2' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 2' 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 2"], ["key", "Key 2"], ["secret", "Account 2"], ["canvas_account_id", "2"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:57.203398"], ["updated_at", "2016-03-07 15:55:57.203398"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 3"], ["key", "Key 3"], ["secret", "Account 3"], ["canvas_account_id", "3"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:57.306758"], ["updated_at", "2016-03-07 15:55:57.306758"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", "1"], ["created_at", "2016-03-07 15:55:57.320680"], ["updated_at", "2016-03-07 15:55:57.320680"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "1"], ["created_at", "2016-03-07 15:55:57.379638"], ["updated_at", "2016-03-07 15:55:57.379638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 4' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.5ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 4' 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 4"], ["key", "Key 4"], ["secret", "Account 4"], ["canvas_account_id", "4"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:57.487070"], ["updated_at", "2016-03-07 15:55:57.487070"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 5' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 5' 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 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:57.570212"], ["updated_at", "2016-03-07 15:55:57.570212"]]  (0.2ms) 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", "2"], ["created_at", "2016-03-07 15:55:57.583348"], ["updated_at", "2016-03-07 15:55:57.583348"]]  (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", "2"], ["created_at", "2016-03-07 15:55:57.592346"], ["updated_at", "2016-03-07 15:55:57.592346"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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 6' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' 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 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:57.670077"], ["updated_at", "2016-03-07 15:55:57.670077"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 7' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 7' 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 7"], ["key", "Key 7"], ["secret", "Account 7"], ["canvas_account_id", "7"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:57.693773"], ["updated_at", "2016-03-07 15:55:57.693773"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "3"], ["created_at", "2016-03-07 15:55:57.709216"], ["updated_at", "2016-03-07 15:55:57.709216"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "3"], ["created_at", "2016-03-07 15:55:57.763481"], ["updated_at", "2016-03-07 15:55:57.763481"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 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.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 8"], ["key", "Key 8"], ["secret", "Account 8"], ["canvas_account_id", "8"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:57.932883"], ["updated_at", "2016-03-07 15:55:57.932883"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 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.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 9"], ["key", "Key 9"], ["secret", "Account 9"], ["canvas_account_id", "9"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:57.953074"], ["updated_at", "2016-03-07 15:55:57.953074"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "4"], ["created_at", "2016-03-07 15:55:58.013203"], ["updated_at", "2016-03-07 15:55:58.013203"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "4"], ["created_at", "2016-03-07 15:55:58.025035"], ["updated_at", "2016-03-07 15:55:58.025035"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 10' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 10' LIMIT 1 SQL (1.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 10"], ["key", "Key 10"], ["secret", "Account 10"], ["canvas_account_id", "10"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:58.109005"], ["updated_at", "2016-03-07 15:55:58.109005"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 11' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 11' 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 11"], ["key", "Key 11"], ["secret", "Account 11"], ["canvas_account_id", "11"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:58.139869"], ["updated_at", "2016-03-07 15:55:58.139869"]]  (0.2ms) 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", "5"], ["created_at", "2016-03-07 15:55:58.154857"], ["updated_at", "2016-03-07 15:55:58.154857"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", "5"], ["created_at", "2016-03-07 15:55:58.171739"], ["updated_at", "2016-03-07 15:55:58.171739"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 12' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 12' 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 12"], ["key", "Key 12"], ["secret", "Account 12"], ["canvas_account_id", "12"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:58.315350"], ["updated_at", "2016-03-07 15:55:58.315350"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 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.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 13"], ["key", "Key 13"], ["secret", "Account 13"], ["canvas_account_id", "13"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:58.335027"], ["updated_at", "2016-03-07 15:55:58.335027"]]  (0.2ms) 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", "6"], ["created_at", "2016-03-07 15:55:58.395081"], ["updated_at", "2016-03-07 15:55:58.395081"]]  (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", "6"], ["created_at", "2016-03-07 15:55:58.404671"], ["updated_at", "2016-03-07 15:55:58.404671"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["name", "test assignment"], ["coalescing_panda_course_id", 1], ["canvas_assignment_id", "1"], ["created_at", "2016-03-07 15:55:58.415891"], ["updated_at", "2016-03-07 15:55:58.415891"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:55:58.436716"], ["updated_at", "2016-03-07 15:55:58.436716"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 14' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.4ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 14' 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 14"], ["key", "Key 14"], ["secret", "Account 14"], ["canvas_account_id", "14"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:58.512927"], ["updated_at", "2016-03-07 15:55:58.512927"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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 15' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 15' 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 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:58.542745"], ["updated_at", "2016-03-07 15:55:58.542745"]]  (0.2ms) 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", "7"], ["created_at", "2016-03-07 15:55:58.602017"], ["updated_at", "2016-03-07 15:55:58.602017"]]  (0.2ms) 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", "7"], ["created_at", "2016-03-07 15:55:58.668570"], ["updated_at", "2016-03-07 15:55:58.668570"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) 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.2ms) 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", "2016-03-07 15:55:58.694985"], ["updated_at", "2016-03-07 15:55:58.694985"]]  (0.1ms) RELEASE 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" = '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  (0.5ms) rollback transaction  (0.2ms) 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  (0.2ms) rollback transaction  (0.2ms) 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  (0.2ms) rollback transaction  (0.2ms) 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", "2016-03-08 15:55:58.868869"], ["created_at", "2016-03-07 15:55:58.873718"], ["updated_at", "2016-03-07 15:55:58.873718"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:55:58.957354"], ["updated_at", "2016-03-07 15:55:58.957354"]]  (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", "2016-03-07 15:55:58.966738"], ["updated_at", "2016-03-07 15:55:58.966738"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-07 15:55:59.040543"], ["updated_at", "2016-03-07 15:55:59.040543"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at DESC  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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-03-07 15:55:59.134637"], ["updated_at", "2016-03-07 15:55:59.134637"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 17' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 17' 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 17"], ["key", "Key 17"], ["secret", "Account 17"], ["canvas_account_id", "17"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:59.159256"], ["updated_at", "2016-03-07 15:55:59.159256"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "8"], ["created_at", "2016-03-07 15:55:59.174871"], ["updated_at", "2016-03-07 15:55:59.174871"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 18' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 18' 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 18"], ["key", "Key 18"], ["secret", "Account 18"], ["canvas_account_id", "18"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:59.252525"], ["updated_at", "2016-03-07 15:55:59.252525"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 19' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 19' 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 19"], ["key", "Key 19"], ["secret", "Account 19"], ["canvas_account_id", "19"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:59.324178"], ["updated_at", "2016-03-07 15:55:59.324178"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "9"], ["created_at", "2016-03-07 15:55:59.339638"], ["updated_at", "2016-03-07 15:55:59.339638"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 20' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:55:59.425183"], ["updated_at", "2016-03-07 15:55:59.425183"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 21' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:55:59.496841"], ["updated_at", "2016-03-07 15:55:59.496841"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "10"], ["created_at", "2016-03-07 15:55:59.512489"], ["updated_at", "2016-03-07 15:55:59.512489"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "1"], ["created_at", "2016-03-07 15:55:59.523940"], ["updated_at", "2016-03-07 15:55:59.523940"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 22' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 22' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 22"], ["key", "Key 22"], ["secret", "Account 22"], ["canvas_account_id", "22"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:59.546876"], ["updated_at", "2016-03-07 15:55:59.546876"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "11"], ["created_at", "2016-03-07 15:55:59.605867"], ["updated_at", "2016-03-07 15:55:59.605867"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:55:59.615868"], ["updated_at", "2016-03-07 15:55:59.615868"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 23' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 23' 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 23"], ["key", "Key 23"], ["secret", "Account 23"], ["canvas_account_id", "23"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:59.644709"], ["updated_at", "2016-03-07 15:55:59.644709"]]  (0.2ms) 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", 1], ["canvas_term_id", "12"], ["created_at", "2016-03-07 15:55:59.704065"], ["updated_at", "2016-03-07 15:55:59.704065"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 24' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 24' LIMIT 1 SQL (0.2ms) INSERT INTO "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-03-07 15:55:59.777235"], ["updated_at", "2016-03-07 15:55:59.777235"]]  (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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:55:59.789687"], ["updated_at", "2016-03-07 15:55:59.789687"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.2ms) INSERT INTO "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-03-07 15:55:59.806294"], ["updated_at", "2016-03-07 15:55:59.806294"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 3], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:55:59.866361"], ["updated_at", "2016-03-07 15:55:59.866361"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 26' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 26' 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 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:55:59.895270"], ["updated_at", "2016-03-07 15:55:59.895270"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 27' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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-03-07 15:55:59.964445"], ["updated_at", "2016-03-07 15:55:59.964445"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "13"], ["created_at", "2016-03-07 15:55:59.981309"], ["updated_at", "2016-03-07 15:55:59.981309"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 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.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", "2016-03-07 15:56:00.144720"], ["updated_at", "2016-03-07 15:56:00.144720"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "coalescing_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-03-07 15:56:00.157229"], ["updated_at", "2016-03-07 15:56:00.157229"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 29"], ["key", "Key 29"], ["secret", "Account 29"], ["canvas_account_id", "29"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:00.249989"], ["updated_at", "2016-03-07 15:56:00.249989"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 30' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 30' 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 30"], ["key", "Key 30"], ["secret", "Account 30"], ["canvas_account_id", "30"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:00.272010"], ["updated_at", "2016-03-07 15:56:00.272010"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 3], ["canvas_term_id", "14"], ["created_at", "2016-03-07 15:56:00.339317"], ["updated_at", "2016-03-07 15:56:00.339317"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "10"], ["created_at", "2016-03-07 15:56:00.350430"], ["updated_at", "2016-03-07 15:56:00.350430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-03-07 15:56:00.362645"], ["updated_at", "2016-03-07 15:56:00.362645"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 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.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 31"], ["key", "Key 31"], ["secret", "Account 31"], ["canvas_account_id", "31"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:00.507267"], ["updated_at", "2016-03-07 15:56:00.507267"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "test3@test.com"], ["name", "Factory User 3"], ["canvas_user_id", "3"], ["created_at", "2016-03-07 15:56:00.524002"], ["updated_at", "2016-03-07 15:56:00.524002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 32' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 32' 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 32"], ["key", "Key 32"], ["secret", "Account 32"], ["canvas_account_id", "32"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:00.543870"], ["updated_at", "2016-03-07 15:56:00.543870"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 33"], ["key", "Key 33"], ["secret", "Account 33"], ["canvas_account_id", "33"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:00.618230"], ["updated_at", "2016-03-07 15:56:00.618230"]]  (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", 3], ["canvas_term_id", "15"], ["created_at", "2016-03-07 15:56:00.631519"], ["updated_at", "2016-03-07 15:56:00.631519"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:56:00.642658"], ["updated_at", "2016-03-07 15:56:00.642658"]]  (0.2ms) 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", "2"], ["created_at", "2016-03-07 15:56:00.694900"], ["updated_at", "2016-03-07 15:56:00.694900"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 34' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 34' 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 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:00.732428"], ["updated_at", "2016-03-07 15:56:00.732428"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-03-07 15:56:00.796425"], ["updated_at", "2016-03-07 15:56:00.796425"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 35' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 35' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 35"], ["key", "Key 35"], ["secret", "Account 35"], ["canvas_account_id", "35"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:00.877347"], ["updated_at", "2016-03-07 15:56:00.877347"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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 36' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 36' LIMIT 1 SQL (0.2ms) INSERT INTO "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-03-07 15:56:00.900984"], ["updated_at", "2016-03-07 15:56:00.900984"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (42.9ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 3], ["canvas_term_id", "16"], ["created_at", "2016-03-07 15:56:00.912517"], ["updated_at", "2016-03-07 15:56:00.912517"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "12"], ["created_at", "2016-03-07 15:56:00.965590"], ["updated_at", "2016-03-07 15:56:00.965590"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "3"], ["created_at", "2016-03-07 15:56:00.975479"], ["updated_at", "2016-03-07 15:56:00.975479"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 37' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 37' 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 37"], ["key", "Key 37"], ["secret", "Account 37"], ["canvas_account_id", "37"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:01.010598"], ["updated_at", "2016-03-07 15:56:01.010598"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test5@test.com"], ["name", "Factory User 5"], ["canvas_user_id", "5"], ["created_at", "2016-03-07 15:56:01.071890"], ["updated_at", "2016-03-07 15:56:01.071890"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 38' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 38' 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 38"], ["key", "Key 38"], ["secret", "Account 38"], ["canvas_account_id", "38"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:01.094459"], ["updated_at", "2016-03-07 15:56:01.094459"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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 (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 39"], ["key", "Key 39"], ["secret", "Account 39"], ["canvas_account_id", "39"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:01.163435"], ["updated_at", "2016-03-07 15:56:01.163435"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "17"], ["created_at", "2016-03-07 15:56:01.232337"], ["updated_at", "2016-03-07 15:56:01.232337"]]  (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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:56:01.241719"], ["updated_at", "2016-03-07 15:56:01.241719"]]  (0.1ms) 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", "4"], ["created_at", "2016-03-07 15:56:01.249657"], ["updated_at", "2016-03-07 15:56:01.249657"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.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", "2016-03-07 15:56:01.260043"], ["updated_at", "2016-03-07 15:56:01.260043"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:56:01.277575"], ["updated_at", "2016-03-07 15:56:01.277575"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 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.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 40"], ["key", "Key 40"], ["secret", "Account 40"], ["canvas_account_id", "40"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:01.349482"], ["updated_at", "2016-03-07 15:56:01.349482"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_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-03-07 15:56:01.367124"], ["updated_at", "2016-03-07 15:56:01.367124"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 41' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 41' 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 41"], ["key", "Key 41"], ["secret", "Account 41"], ["canvas_account_id", "41"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:01.438606"], ["updated_at", "2016-03-07 15:56:01.438606"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 42' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 42' 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 42"], ["key", "Key 42"], ["secret", "Account 42"], ["canvas_account_id", "42"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:01.468006"], ["updated_at", "2016-03-07 15:56:01.468006"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 3], ["canvas_term_id", "18"], ["created_at", "2016-03-07 15:56:01.484360"], ["updated_at", "2016-03-07 15:56:01.484360"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "14"], ["created_at", "2016-03-07 15:56:01.542260"], ["updated_at", "2016-03-07 15:56:01.542260"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "5"], ["created_at", "2016-03-07 15:56:01.613152"], ["updated_at", "2016-03-07 15:56:01.613152"]]  (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", "5"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-03-07 15:56:01.623363"], ["updated_at", "2016-03-07 15:56:01.623363"]]  (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", "6"], ["enrollment_type", "TeacherEnrollment"], ["created_at", "2016-03-07 15:56:01.634375"], ["updated_at", "2016-03-07 15:56:01.634375"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 43' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 43' 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 43"], ["key", "Key 43"], ["secret", "Account 43"], ["canvas_account_id", "43"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:01.703284"], ["updated_at", "2016-03-07 15:56:01.703284"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test7@test.com"], ["name", "Factory User 7"], ["canvas_user_id", "7"], ["created_at", "2016-03-07 15:56:01.719462"], ["updated_at", "2016-03-07 15:56:01.719462"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 44' 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 44"], ["key", "Key 44"], ["secret", "Account 44"], ["canvas_account_id", "44"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:01.744771"], ["updated_at", "2016-03-07 15:56:01.744771"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 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.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 45"], ["key", "Key 45"], ["secret", "Account 45"], ["canvas_account_id", "45"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:01.814911"], ["updated_at", "2016-03-07 15:56:01.814911"]]  (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", 3], ["canvas_term_id", "19"], ["created_at", "2016-03-07 15:56:01.828086"], ["updated_at", "2016-03-07 15:56:01.828086"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:56:01.838243"], ["updated_at", "2016-03-07 15:56:01.838243"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-03-07 15:56:01.895501"], ["updated_at", "2016-03-07 15:56:01.895501"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 46' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 46' LIMIT 1  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 47' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 47' 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 47"], ["key", "Key 47"], ["secret", "Account 47"], ["canvas_account_id", "46"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:02.077976"], ["updated_at", "2016-03-07 15:56:02.077976"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 48' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 48' 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 48"], ["key", "Key 48"], ["secret", "Account 48"], ["canvas_account_id", "47"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:02.107912"], ["updated_at", "2016-03-07 15:56:02.107912"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", "20"], ["created_at", "2016-03-07 15:56:02.168570"], ["updated_at", "2016-03-07 15:56:02.168570"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "16"], ["created_at", "2016-03-07 15:56:02.181495"], ["updated_at", "2016-03-07 15:56:02.181495"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 49' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 49' 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 49"], ["key", "Key 49"], ["secret", "Account 49"], ["canvas_account_id", "48"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:02.215905"], ["updated_at", "2016-03-07 15:56:02.215905"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 50' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 50' 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 50"], ["key", "Key 50"], ["secret", "Account 50"], ["canvas_account_id", "49"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:02.284563"], ["updated_at", "2016-03-07 15:56:02.284563"]]  (0.1ms) 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", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-07 15:56:02.353951"], ["updated_at", "2016-03-07 15:56:02.353951"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "17"], ["created_at", "2016-03-07 15:56:02.364115"], ["updated_at", "2016-03-07 15:56:02.364115"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.2ms) 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 51' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 51' 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 51"], ["key", "Key 51"], ["secret", "Account 51"], ["canvas_account_id", "50"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:02.435901"], ["updated_at", "2016-03-07 15:56:02.435901"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 52' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' 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 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:02.460674"], ["updated_at", "2016-03-07 15:56:02.460674"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "22"], ["created_at", "2016-03-07 15:56:02.481233"], ["updated_at", "2016-03-07 15:56:02.481233"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:02.541038"], ["updated_at", "2016-03-07 15:56:02.541038"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-03-07 15:56:02.558219"], ["updated_at", "2016-03-07 15:56:02.558219"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-03-07 15:56:02.569122"], ["updated_at", "2016-03-07 15:56:02.569122"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 53' 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 53"], ["key", "Key 53"], ["secret", "Account 53"], ["canvas_account_id", "52"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:02.599136"], ["updated_at", "2016-03-07 15:56:02.599136"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 54' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 54' 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 54"], ["key", "Key 54"], ["secret", "Account 54"], ["canvas_account_id", "53"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:02.737017"], ["updated_at", "2016-03-07 15:56:02.737017"]]  (0.2ms) 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", "23"], ["created_at", "2016-03-07 15:56:02.751530"], ["updated_at", "2016-03-07 15:56:02.751530"]]  (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", "19"], ["created_at", "2016-03-07 15:56:02.760044"], ["updated_at", "2016-03-07 15:56:02.760044"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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 55' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 55' 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 55"], ["key", "Key 55"], ["secret", "Account 55"], ["canvas_account_id", "54"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:02.856864"], ["updated_at", "2016-03-07 15:56:02.856864"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:56:02.871916"], ["updated_at", "2016-03-07 15:56:02.871916"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 56' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 56' 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 56"], ["key", "Key 56"], ["secret", "Account 56"], ["canvas_account_id", "55"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:02.941402"], ["updated_at", "2016-03-07 15:56:02.941402"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 57' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 57' 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 57"], ["key", "Key 57"], ["secret", "Account 57"], ["canvas_account_id", "56"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:02.963685"], ["updated_at", "2016-03-07 15:56:02.963685"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 3], ["canvas_term_id", "24"], ["created_at", "2016-03-07 15:56:03.026582"], ["updated_at", "2016-03-07 15:56:03.026582"]]  (0.2ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "20"], ["created_at", "2016-03-07 15:56:03.094452"], ["updated_at", "2016-03-07 15:56:03.094452"]]  (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", "3"], ["created_at", "2016-03-07 15:56:03.103236"], ["updated_at", "2016-03-07 15:56:03.103236"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 58' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 58' 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 58"], ["key", "Key 58"], ["secret", "Account 58"], ["canvas_account_id", "57"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:03.184985"], ["updated_at", "2016-03-07 15:56:03.184985"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-03-07 15:56:03.202320"], ["updated_at", "2016-03-07 15:56:03.202320"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 59' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 59' 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 59"], ["key", "Key 59"], ["secret", "Account 59"], ["canvas_account_id", "58"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:03.226862"], ["updated_at", "2016-03-07 15:56:03.226862"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 60' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 60' LIMIT 1 SQL (0.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 60"], ["key", "Key 60"], ["secret", "Account 60"], ["canvas_account_id", "59"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:03.293336"], ["updated_at", "2016-03-07 15:56:03.293336"]]  (0.2ms) 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", 3], ["canvas_term_id", "25"], ["created_at", "2016-03-07 15:56:03.306686"], ["updated_at", "2016-03-07 15:56:03.306686"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-07 15:56:03.316263"], ["updated_at", "2016-03-07 15:56:03.316263"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "4"], ["created_at", "2016-03-07 15:56:03.374167"], ["updated_at", "2016-03-07 15:56:03.374167"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 61' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 61' 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 61"], ["key", "Key 61"], ["secret", "Account 61"], ["canvas_account_id", "60"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:03.469436"], ["updated_at", "2016-03-07 15:56:03.469436"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2016-03-07 15:56:03.484060"], ["updated_at", "2016-03-07 15:56:03.484060"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 62' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 62' 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 62"], ["key", "Key 62"], ["secret", "Account 62"], ["canvas_account_id", "61"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:03.559287"], ["updated_at", "2016-03-07 15:56:03.559287"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 63' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 63' LIMIT 1 SQL (0.2ms) INSERT INTO "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-03-07 15:56:03.583309"], ["updated_at", "2016-03-07 15:56:03.583309"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 3], ["canvas_term_id", "26"], ["created_at", "2016-03-07 15:56:03.602357"], ["updated_at", "2016-03-07 15:56:03.602357"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "22"], ["created_at", "2016-03-07 15:56:03.658818"], ["updated_at", "2016-03-07 15:56:03.658818"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "5"], ["created_at", "2016-03-07 15:56:03.669101"], ["updated_at", "2016-03-07 15:56:03.669101"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 64' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 64' 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 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:03.702960"], ["updated_at", "2016-03-07 15:56:03.702960"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2016-03-07 15:56:03.767413"], ["updated_at", "2016-03-07 15:56:03.767413"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 65' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:56:03.845533"], ["updated_at", "2016-03-07 15:56:03.845533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 66' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 66' 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 66"], ["key", "Key 66"], ["secret", "Account 66"], ["canvas_account_id", "65"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:03.866130"], ["updated_at", "2016-03-07 15:56:03.866130"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 3], ["canvas_term_id", "27"], ["created_at", "2016-03-07 15:56:03.924469"], ["updated_at", "2016-03-07 15:56:03.924469"]]  (0.2ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:56:03.934628"], ["updated_at", "2016-03-07 15:56:03.934628"]]  (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", "6"], ["created_at", "2016-03-07 15:56:03.944411"], ["updated_at", "2016-03-07 15:56:03.944411"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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-03-07 15:56:03.956794"], ["updated_at", "2016-03-07 15:56:03.956794"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2016-03-07 15:56:03.972880"], ["updated_at", "2016-03-07 15:56:03.972880"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 67' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 67' 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 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:04.042207"], ["updated_at", "2016-03-07 15:56:04.042207"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:56:04.057533"], ["updated_at", "2016-03-07 15:56:04.057533"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 68' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 68' 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 68"], ["key", "Key 68"], ["secret", "Account 68"], ["canvas_account_id", "67"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:04.123970"], ["updated_at", "2016-03-07 15:56:04.123970"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (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 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.2ms) INSERT INTO "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-03-07 15:56:04.200270"], ["updated_at", "2016-03-07 15:56:04.200270"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 3], ["canvas_term_id", "28"], ["created_at", "2016-03-07 15:56:04.214466"], ["updated_at", "2016-03-07 15:56:04.214466"]]  (0.2ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "24"], ["created_at", "2016-03-07 15:56:04.224628"], ["updated_at", "2016-03-07 15:56:04.224628"]]  (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", "7"], ["created_at", "2016-03-07 15:56:04.280750"], ["updated_at", "2016-03-07 15:56:04.280750"]]  (0.2ms) 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", "2016-03-07 15:56:04.293119"], ["updated_at", "2016-03-07 15:56:04.293119"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2"], ["created_at", "2016-03-07 15:56:04.304764"], ["updated_at", "2016-03-07 15:56:04.304764"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 70' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 70' 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 70"], ["key", "Key 70"], ["secret", "Account 70"], ["canvas_account_id", "69"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:04.377839"], ["updated_at", "2016-03-07 15:56:04.377839"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2016-03-07 15:56:04.393080"], ["updated_at", "2016-03-07 15:56:04.393080"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 71' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 71' 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 71"], ["key", "Key 71"], ["secret", "Account 71"], ["canvas_account_id", "70"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:04.414460"], ["updated_at", "2016-03-07 15:56:04.414460"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 72' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 72' 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 72"], ["key", "Key 72"], ["secret", "Account 72"], ["canvas_account_id", "71"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:04.492814"], ["updated_at", "2016-03-07 15:56:04.492814"]]  (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", 3], ["canvas_term_id", "29"], ["created_at", "2016-03-07 15:56:04.567844"], ["updated_at", "2016-03-07 15:56:04.567844"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:56:04.577021"], ["updated_at", "2016-03-07 15:56:04.577021"]]  (0.2ms) 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", "8"], ["created_at", "2016-03-07 15:56:04.589928"], ["updated_at", "2016-03-07 15:56:04.589928"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (48.9ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 73' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 73' 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 73"], ["key", "Key 73"], ["secret", "Account 73"], ["canvas_account_id", "72"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:04.671552"], ["updated_at", "2016-03-07 15:56:04.671552"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 74' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 74' 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 74"], ["key", "Key 74"], ["secret", "Account 74"], ["canvas_account_id", "73"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:04.707154"], ["updated_at", "2016-03-07 15:56:04.707154"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 1], ["canvas_term_id", "1"], ["created_at", "2016-03-07 15:56:04.767027"], ["updated_at", "2016-03-07 15:56:04.767027"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 1], ["canvas_term_id", "1"], ["created_at", "2016-03-07 15:56:04.780792"], ["updated_at", "2016-03-07 15:56:04.780792"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 75' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 75' 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 75"], ["key", "Key 75"], ["secret", "Account 75"], ["canvas_account_id", "74"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:04.867681"], ["updated_at", "2016-03-07 15:56:04.867681"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.3ms) begin transaction  (0.2ms) 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 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.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 76"], ["key", "Key 76"], ["secret", "Account 76"], ["canvas_account_id", "75"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:04.955856"], ["updated_at", "2016-03-07 15:56:04.955856"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 77' 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 77"], ["key", "Key 77"], ["secret", "Account 77"], ["canvas_account_id", "76"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:05.028065"], ["updated_at", "2016-03-07 15:56:05.028065"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "test16@test.com"], ["name", "Factory User 16"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:56:05.046532"], ["updated_at", "2016-03-07 15:56:05.046532"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "test17@test.com"], ["name", "Factory User 17"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:56:05.060856"], ["updated_at", "2016-03-07 15:56:05.060856"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 78' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 78' 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 78"], ["key", "Key 78"], ["secret", "Account 78"], ["canvas_account_id", "77"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:05.133013"], ["updated_at", "2016-03-07 15:56:05.133013"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 79' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:56:05.168169"], ["updated_at", "2016-03-07 15:56:05.168169"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.4ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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.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", "2016-03-07 15:56:05.308960"], ["updated_at", "2016-03-07 15:56:05.308960"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:05.318516"], ["id", 1]]  (0.2ms) 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.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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 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.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 80"], ["key", "Key 80"], ["secret", "Account 80"], ["canvas_account_id", "79"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:05.392824"], ["updated_at", "2016-03-07 15:56:05.392824"]]  (0.2ms) 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.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", "2016-03-07 15:56:05.416026"], ["updated_at", "2016-03-07 15:56:05.416026"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:05.427244"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 81' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 81' 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 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:05.505997"], ["updated_at", "2016-03-07 15:56:05.505997"]]  (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::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.2ms) 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", "2016-03-07 15:56:05.530382"], ["updated_at", "2016-03-07 15:56:05.530382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:05.601964"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Started"], ["updated_at", "2016-03-07 15:56:05.707811"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.4ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:05.729968"], ["updated_at", "2016-03-07 15:56:05.729968"]]  (0.2ms) 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.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-03-07 15:56:05.793725"], ["updated_at", "2016-03-07 15:56:05.793725"]]  (0.2ms) 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"."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.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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:05.808704"], ["updated_at", "2016-03-07 15:56:05.808704"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.3ms) 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) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2016-03-07 15:56:05.822891"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "status" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["status", "Completed"], ["updated_at", "2016-03-07 15:56:05.881945"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (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 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.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 82"], ["key", "Key 82"], ["secret", "Account 82"], ["canvas_account_id", "81"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:05.964476"], ["updated_at", "2016-03-07 15:56:05.964476"]]  (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::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-03-07 15:56:05.985139"], ["updated_at", "2016-03-07 15:56:05.985139"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:06.042763"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.3ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-03-07 15:56:06.062911"], ["updated_at", "2016-03-07 15:56:06.062911"]]  (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"."canvas_course_id" = ? ORDER BY "coalescing_panda_courses"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_course_id", "2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-03-07 15:56:06.082731"], ["updated_at", "2016-03-07 15:56:06.082731"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Course Load (0.3ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_courses"  (1.5ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (0.2ms) 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 83' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' 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 83"], ["key", "Key 83"], ["secret", "Account 83"], ["canvas_account_id", "82"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:06.160390"], ["updated_at", "2016-03-07 15:56:06.160390"]]  (0.2ms) 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.2ms) 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", "2016-03-07 15:56:06.234895"], ["updated_at", "2016-03-07 15:56:06.234895"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:06.301717"], ["id", 1]]  (0.2ms) 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.4ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "canvas_user_id", "name", "login_id", "sis_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"], ["name", "teacher@test.com"], ["login_id", "teacher@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:06.316816"], ["updated_at", "2016-03-07 15:56:06.316816"]]  (0.2ms) 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"."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.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-03-07 15:56:06.333455"], ["updated_at", "2016-03-07 15:56:06.333455"]]  (0.2ms) 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.2ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:06.394144"], ["updated_at", "2016-03-07 15:56:06.394144"]]  (0.1ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 84' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 84' 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 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:06.430376"], ["updated_at", "2016-03-07 15:56:06.430376"]]  (0.2ms) 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.2ms) 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", "2016-03-07 15:56:06.502293"], ["updated_at", "2016-03-07 15:56:06.502293"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:06.514332"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 85' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 85' 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 85"], ["key", "Key 85"], ["secret", "Account 85"], ["canvas_account_id", "84"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:06.596818"], ["updated_at", "2016-03-07 15:56:06.596818"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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.3ms) 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-03-07 15:56:06.689460"], ["updated_at", "2016-03-07 15:56:06.689460"]]  (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", "2016-03-07 15:56:06.698973"], ["id", 1]]  (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::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.3ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 86' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 86' 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 86"], ["key", "Key 86"], ["secret", "Account 86"], ["canvas_account_id", "85"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:06.785364"], ["updated_at", "2016-03-07 15:56:06.785364"]]  (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::LtiAccount' AND "coalescing_panda_canvas_batches"."context_id" = 1 ORDER BY created_at DESC LIMIT 1 [["coalescing_panda_lti_account_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "coalescing_panda_canvas_batches" ("context_id", "context_type", "status", "coalescing_panda_lti_account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::LtiAccount"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:56:06.809513"], ["updated_at", "2016-03-07 15:56:06.809513"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:06.825562"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (45.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.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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-03-07 15:56:06.895319"], ["id", 1]]  (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::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  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) 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 87' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 87' 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 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:06.996138"], ["updated_at", "2016-03-07 15:56:06.996138"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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 88' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' 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 88"], ["key", "Key 88"], ["secret", "Account 88"], ["canvas_account_id", "87"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:07.078815"], ["updated_at", "2016-03-07 15:56:07.078815"]]  (0.2ms) 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", "31"], ["created_at", "2016-03-07 15:56:07.093146"], ["updated_at", "2016-03-07 15:56:07.093146"]]  (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", "26"], ["created_at", "2016-03-07 15:56:07.101637"], ["updated_at", "2016-03-07 15:56:07.101637"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.4ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:56:07.166693"], ["updated_at", "2016-03-07 15:56:07.166693"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:56:07.180517"], ["id", 1]]  (0.1ms) 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  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) 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 89' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 89' 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 89"], ["key", "Key 89"], ["secret", "Account 89"], ["canvas_account_id", "88"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:07.278417"], ["updated_at", "2016-03-07 15:56:07.278417"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (45.9ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 90' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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-03-07 15:56:07.350535"], ["updated_at", "2016-03-07 15:56:07.350535"]]  (0.2ms) 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", "32"], ["created_at", "2016-03-07 15:56:07.364331"], ["updated_at", "2016-03-07 15:56:07.364331"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "27"], ["created_at", "2016-03-07 15:56:07.429560"], ["updated_at", "2016-03-07 15:56:07.429560"]]  (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.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-03-07 15:56:07.447406"], ["updated_at", "2016-03-07 15:56:07.447406"]]  (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-03-07 15:56:07.458151"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 91' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 91' 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 91"], ["key", "Key 91"], ["secret", "Account 91"], ["canvas_account_id", "90"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:07.549789"], ["updated_at", "2016-03-07 15:56:07.549789"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 92' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 92' 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 92"], ["key", "Key 92"], ["secret", "Account 92"], ["canvas_account_id", "91"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:07.625831"], ["updated_at", "2016-03-07 15:56:07.625831"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:56:07.639017"], ["updated_at", "2016-03-07 15:56:07.639017"]]  (0.2ms) 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", "28"], ["created_at", "2016-03-07 15:56:07.649208"], ["updated_at", "2016-03-07 15:56:07.649208"]]  (0.2ms) 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.2ms) 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-03-07 15:56:07.713624"], ["updated_at", "2016-03-07 15:56:07.713624"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :include_complete\n"], ["updated_at", "2016-03-07 15:56:07.723323"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 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.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 93"], ["key", "Key 93"], ["secret", "Account 93"], ["canvas_account_id", "92"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:07.814456"], ["updated_at", "2016-03-07 15:56:07.814456"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 94' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-07 15:56:07.885668"], ["updated_at", "2016-03-07 15:56:07.885668"]]  (0.2ms) 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", "34"], ["created_at", "2016-03-07 15:56:07.899352"], ["updated_at", "2016-03-07 15:56:07.899352"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "29"], ["created_at", "2016-03-07 15:56:07.913396"], ["updated_at", "2016-03-07 15:56:07.913396"]]  (0.2ms) 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.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-03-07 15:56:07.983430"], ["updated_at", "2016-03-07 15:56:07.983430"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:56:07.994608"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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 95' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 95' 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 95"], ["key", "Key 95"], ["secret", "Account 95"], ["canvas_account_id", "94"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:08.147458"], ["updated_at", "2016-03-07 15:56:08.147458"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 96' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:56:08.169912"], ["updated_at", "2016-03-07 15:56:08.169912"]]  (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", "35"], ["created_at", "2016-03-07 15:56:08.181940"], ["updated_at", "2016-03-07 15:56:08.181940"]]  (0.1ms) 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", "30"], ["created_at", "2016-03-07 15:56:08.236543"], ["updated_at", "2016-03-07 15:56:08.236543"]]  (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.2ms) 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", "2016-03-07 15:56:08.260857"], ["updated_at", "2016-03-07 15:56:08.260857"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-03-07 15:56:08.275578"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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-03-07 15:56:08.424480"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.3ms) 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.2ms) 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", "2016-03-07 15:56:08.446215"], ["updated_at", "2016-03-07 15:56:08.446215"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.3ms) 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) 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-03-07 15:56:08.518694"], ["id", 1]]  (0.1ms) 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"."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.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-03-07 15:56:08.535335"], ["updated_at", "2016-03-07 15:56:08.535335"]]  (0.2ms) 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.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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:08.548133"], ["updated_at", "2016-03-07 15:56:08.548133"]]  (0.2ms) 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.2ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:08.609991"], ["updated_at", "2016-03-07 15:56:08.609991"]]  (0.1ms) 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 (1, 2, 3)) [["coalescing_panda_course_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 25.0], ["updated_at", "2016-03-07 15:56:08.640305"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (44.7ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "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.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.2ms) 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" = ? 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.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", "2"]]  (0.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.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.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.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.4ms) 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) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 37.5], ["updated_at", "2016-03-07 15:56:08.954901"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (1.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.2ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2016-03-07 15:56:08.975747"], ["updated_at", "2016-03-07 15:56:08.975747"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::AssignmentGroup Load (0.3ms) 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) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2016-03-07 15:56:08.990664"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.5ms) 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.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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "1"]] CoalescingPanda::GroupCategory Load (1.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.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.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", "2"]] 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.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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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.4ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2016-03-07 15:56:09.313016"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Assignment Load (0.4ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments" WHERE "coalescing_panda_assignments"."coalescing_panda_course_id" = ? [["coalescing_panda_course_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2016-03-07 15:56:09.331996"], ["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (1.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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 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"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2016-03-07 15:56:09.444743"], ["updated_at", "2016-03-07 15:56:09.444743"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.3ms) SELECT "coalescing_panda_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.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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-03-07 15:56:09.516793"], ["updated_at", "2016-03-07 15:56:09.516793"]]  (0.2ms) 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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 87.5], ["updated_at", "2016-03-07 15:56:09.595367"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Group Load (0.3ms) 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.8ms) 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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] 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.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2016-03-07 15:56:09.695637"], ["updated_at", "2016-03-07 15:56:09.695637"]]  (0.1ms) 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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] 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", "3"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 3], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2016-03-07 15:56:09.719646"], ["updated_at", "2016-03-07 15:56:09.719646"]]  (0.3ms) 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", "13"]] 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" = ? 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.2ms) SAVEPOINT active_record_1  (0.1ms) 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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"]] 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", "3"]]  (0.1ms) SAVEPOINT active_record_1  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.4ms) 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.3ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 100.0], ["updated_at", "2016-03-07 15:56:09.858413"], ["id", 1]]  (0.1ms) 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", "Completed"], ["updated_at", "2016-03-07 15:56:09.868169"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Section Load (0.3ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections"  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 97' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 97' 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 97"], ["key", "Key 97"], ["secret", "Account 97"], ["canvas_account_id", "96"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:10.019634"], ["updated_at", "2016-03-07 15:56:10.019634"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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 98' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 98' 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 98"], ["key", "Key 98"], ["secret", "Account 98"], ["canvas_account_id", "97"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:10.045385"], ["updated_at", "2016-03-07 15:56:10.045385"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "36"], ["created_at", "2016-03-07 15:56:10.059565"], ["updated_at", "2016-03-07 15:56:10.059565"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "31"], ["created_at", "2016-03-07 15:56:10.118627"], ["updated_at", "2016-03-07 15:56:10.118627"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) 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-03-07 15:56:10.143363"], ["updated_at", "2016-03-07 15:56:10.143363"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:56:10.154385"], ["id", 1]]  (0.2ms) 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.2ms) 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", "2016-03-07 15:56:10.220221"], ["updated_at", "2016-03-07 15:56:10.220221"]]  (0.2ms) 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.3ms) SELECT COUNT(*) FROM "coalescing_panda_sections"  (1.6ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users"  (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 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.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", "2016-03-07 15:56:10.328320"], ["updated_at", "2016-03-07 15:56:10.328320"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 100' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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-03-07 15:56:10.397740"], ["updated_at", "2016-03-07 15:56:10.397740"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "37"], ["created_at", "2016-03-07 15:56:10.411160"], ["updated_at", "2016-03-07 15:56:10.411160"]]  (0.2ms) 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", "32"], ["created_at", "2016-03-07 15:56:10.421492"], ["updated_at", "2016-03-07 15:56:10.421492"]]  (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.2ms) 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", "2016-03-07 15:56:10.486797"], ["updated_at", "2016-03-07 15:56:10.486797"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:56:10.499921"], ["id", 1]]  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]]  (0.2ms) 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-03-07 15:56:10.519700"], ["updated_at", "2016-03-07 15:56:10.519700"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "coalescing_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.2ms) 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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:10.587775"], ["updated_at", "2016-03-07 15:56:10.587775"]]  (0.1ms) 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"."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.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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:10.602327"], ["updated_at", "2016-03-07 15:56:10.602327"]]  (0.1ms) 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]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (1.6ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Enrollment Load (0.3ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.2ms) 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 101' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 101' 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 101"], ["key", "Key 101"], ["secret", "Account 101"], ["canvas_account_id", "100"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:10.764936"], ["updated_at", "2016-03-07 15:56:10.764936"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 102' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 102' 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 102"], ["key", "Key 102"], ["secret", "Account 102"], ["canvas_account_id", "101"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:10.788995"], ["updated_at", "2016-03-07 15:56:10.788995"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "38"], ["created_at", "2016-03-07 15:56:10.803485"], ["updated_at", "2016-03-07 15:56:10.803485"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "33"], ["created_at", "2016-03-07 15:56:10.862745"], ["updated_at", "2016-03-07 15:56:10.862745"]]  (0.3ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) 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", "2016-03-07 15:56:10.894142"], ["updated_at", "2016-03-07 15:56:10.894142"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-03-07 15:56:10.908330"], ["id", 1]]  (0.2ms) 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.2ms) 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", "2016-03-07 15:56:10.975336"], ["updated_at", "2016-03-07 15:56:10.975336"]]  (0.2ms) 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"."id" != 1) [["coalescing_panda_course_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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]]  (0.2ms) 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-03-07 15:56:11.066386"], ["updated_at", "2016-03-07 15:56:11.066386"]]  (0.3ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]]  (0.2ms) 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-03-07 15:56:11.084270"], ["updated_at", "2016-03-07 15:56:11.084270"]]  (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", "3"]]  (0.1ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:11.097533"], ["updated_at", "2016-03-07 15:56:11.097533"]]  (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]] 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.2ms) 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "2"]]  (0.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.2ms) 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "3"]]  (0.2ms) 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.2ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" ORDER BY "coalescing_panda_enrollments"."id" DESC LIMIT 1  (1.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) 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.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 103' 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 103"], ["key", "Key 103"], ["secret", "Account 103"], ["canvas_account_id", "102"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:11.511687"], ["updated_at", "2016-03-07 15:56:11.511687"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 104' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 104' 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 104"], ["key", "Key 104"], ["secret", "Account 104"], ["canvas_account_id", "103"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:11.541554"], ["updated_at", "2016-03-07 15:56:11.541554"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "39"], ["created_at", "2016-03-07 15:56:11.562054"], ["updated_at", "2016-03-07 15:56:11.562054"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "34"], ["created_at", "2016-03-07 15:56:11.620425"], ["updated_at", "2016-03-07 15:56:11.620425"]]  (0.2ms) 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.2ms) 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-03-07 15:56:11.641200"], ["updated_at", "2016-03-07 15:56:11.641200"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:56:11.653129"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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" = ? ORDER BY "coalescing_panda_group_categories"."id" ASC LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (1.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", "2016-03-07 15:56:11.733457"], ["updated_at", "2016-03-07 15:56:11.733457"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (0.9ms) rollback transaction  (0.1ms) begin transaction CoalescingPanda::Assignment Load (0.4ms) SELECT "coalescing_panda_assignments".* FROM "coalescing_panda_assignments"  (0.2ms) 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 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.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 105"], ["key", "Key 105"], ["secret", "Account 105"], ["canvas_account_id", "104"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:11.845570"], ["updated_at", "2016-03-07 15:56:11.845570"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 106' 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 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:11.921525"], ["updated_at", "2016-03-07 15:56:11.921525"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "40"], ["created_at", "2016-03-07 15:56:11.935127"], ["updated_at", "2016-03-07 15:56:11.935127"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "35"], ["created_at", "2016-03-07 15:56:11.948848"], ["updated_at", "2016-03-07 15:56:11.948848"]]  (0.2ms) 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.2ms) 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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:56:12.017961"], ["updated_at", "2016-03-07 15:56:12.017961"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:56:12.030672"], ["id", 1]]  (0.2ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2016-03-07 15:56:12.093562"], ["updated_at", "2016-03-07 15:56:12.093562"]]  (0.1ms) 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.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" = ? 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.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.2ms) 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", "2"]] 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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) 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]]  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_assignments" CoalescingPanda::Assignment Load (0.3ms) 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.2ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_categories" WHERE "coalescing_panda_group_categories"."id" = ? LIMIT 1 [["id", 1]]  (1.6ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::AssignmentGroup Load (0.3ms) SELECT "coalescing_panda_assignment_groups".* FROM "coalescing_panda_assignment_groups"  (0.3ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (0.2ms) 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 107' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 107' 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 107"], ["key", "Key 107"], ["secret", "Account 107"], ["canvas_account_id", "106"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:12.392689"], ["updated_at", "2016-03-07 15:56:12.392689"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 108' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 108' 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 108"], ["key", "Key 108"], ["secret", "Account 108"], ["canvas_account_id", "107"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:12.468640"], ["updated_at", "2016-03-07 15:56:12.468640"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "41"], ["created_at", "2016-03-07 15:56:12.484662"], ["updated_at", "2016-03-07 15:56:12.484662"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", "36"], ["created_at", "2016-03-07 15:56:12.571642"], ["updated_at", "2016-03-07 15:56:12.571642"]]  (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.2ms) 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::Course"], ["status", "Queued"], ["coalescing_panda_lti_account_id", 1], ["created_at", "2016-03-07 15:56:12.595842"], ["updated_at", "2016-03-07 15:56:12.595842"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:56:12.613830"], ["id", 1]]  (0.1ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_assignment_groups" ("coalescing_panda_course_id", "canvas_assignment_group_id", "group_weight", "name", "position", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "3"], ["group_weight", 500.0], ["name", "Assignments"], ["position", 3], ["created_at", "2016-03-07 15:56:12.683126"], ["updated_at", "2016-03-07 15:56:12.683126"]]  (0.2ms) 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"."id" != 1) [["coalescing_panda_course_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_assignment_groups"  (1.2ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Submission Load (0.4ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions"  (0.2ms) 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 109' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 109' 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 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:12.783632"], ["updated_at", "2016-03-07 15:56:12.783632"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 110' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 110' 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 110"], ["key", "Key 110"], ["secret", "Account 110"], ["canvas_account_id", "109"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:12.809175"], ["updated_at", "2016-03-07 15:56:12.809175"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "42"], ["created_at", "2016-03-07 15:56:12.878410"], ["updated_at", "2016-03-07 15:56:12.878410"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "37"], ["created_at", "2016-03-07 15:56:12.892264"], ["updated_at", "2016-03-07 15:56:12.892264"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) 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-03-07 15:56:12.977983"], ["updated_at", "2016-03-07 15:56:12.977983"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:56:12.988224"], ["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.2ms) 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", "2016-03-07 15:56:13.004211"], ["updated_at", "2016-03-07 15:56:13.004211"]]  (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"."id" != 1) [["coalescing_panda_course_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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]]  (0.2ms) 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-03-07 15:56:13.072238"], ["updated_at", "2016-03-07 15:56:13.072238"]]  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]]  (0.2ms) 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-03-07 15:56:13.087617"], ["updated_at", "2016-03-07 15:56:13.087617"]]  (0.2ms) 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.2ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:13.103778"], ["updated_at", "2016-03-07 15:56:13.103778"]]  (0.2ms) 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]] 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" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.3ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "2"]]  (0.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.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.2ms) 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.2ms) 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]] 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"."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.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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_group_id", "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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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.2ms) 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"."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.3ms) 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.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" IS NULL LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.2ms) 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", "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.2ms) 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.4ms) 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.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", "3"]] CoalescingPanda::Assignment Load (0.5ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-03-07 15:56:13.712337"], ["updated_at", "2016-03-07 15:56:13.712337"]]  (0.1ms) RELEASE SAVEPOINT active_record_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", "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"]] 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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-03-07 15:56:13.738216"], ["updated_at", "2016-03-07 15:56:13.738216"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.4ms) 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.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", "3"]] 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"."canvas_assignment_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_assignment_id", "2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-03-07 15:56:13.815699"], ["updated_at", "2016-03-07 15:56:13.815699"]]  (0.1ms) RELEASE SAVEPOINT active_record_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", "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.2ms) 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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-03-07 15:56:13.892013"], ["updated_at", "2016-03-07 15:56:13.892013"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (1.9ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Group Load (0.4ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (0.2ms) 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 111' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 111' 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 111"], ["key", "Key 111"], ["secret", "Account 111"], ["canvas_account_id", "110"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:13.986986"], ["updated_at", "2016-03-07 15:56:13.986986"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 112' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 112' 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 112"], ["key", "Key 112"], ["secret", "Account 112"], ["canvas_account_id", "111"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:14.076577"], ["updated_at", "2016-03-07 15:56:14.076577"]]  (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", "43"], ["created_at", "2016-03-07 15:56:14.090461"], ["updated_at", "2016-03-07 15:56:14.090461"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "38"], ["created_at", "2016-03-07 15:56:14.101021"], ["updated_at", "2016-03-07 15:56:14.101021"]]  (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.2ms) 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", "2016-03-07 15:56:14.170826"], ["updated_at", "2016-03-07 15:56:14.170826"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:56:14.185719"], ["id", 1]]  (0.1ms) 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.3ms) INSERT INTO "coalescing_panda_group_categories" ("context_id", "context_type", "canvas_group_category_id", "name", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 1], ["name", "mark red"], ["created_at", "2016-03-07 15:56:14.203251"], ["updated_at", "2016-03-07 15:56:14.203251"]]  (0.4ms) 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.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" = ? LIMIT 1 [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_category_id", 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"."canvas_user_id" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_user_id", "2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "coalescing_panda_group_category_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["coalescing_panda_group_category_id", 1], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2016-03-07 15:56:14.287515"], ["updated_at", "2016-03-07 15:56:14.287515"]]  (0.2ms) 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", "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.2ms) SAVEPOINT active_record_1 SQL (0.4ms) 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-03-07 15:56:14.315559"], ["updated_at", "2016-03-07 15:56:14.315559"]]  (0.2ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.7ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups" WHERE "coalescing_panda_groups"."canvas_group_id" = ? LIMIT 1 [["canvas_group_id", "4"]]  (1.7ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Group Load (0.3ms) SELECT "coalescing_panda_groups".* FROM "coalescing_panda_groups"  (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 113' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 113' 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 113"], ["key", "Key 113"], ["secret", "Account 113"], ["canvas_account_id", "112"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:14.488676"], ["updated_at", "2016-03-07 15:56:14.488676"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 114' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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-03-07 15:56:14.557973"], ["updated_at", "2016-03-07 15:56:14.557973"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "44"], ["created_at", "2016-03-07 15:56:14.571197"], ["updated_at", "2016-03-07 15:56:14.571197"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "39"], ["created_at", "2016-03-07 15:56:14.585424"], ["updated_at", "2016-03-07 15:56:14.585424"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.5ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) 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-03-07 15:56:14.653584"], ["updated_at", "2016-03-07 15:56:14.653584"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:56:14.665312"], ["id", 1]]  (0.2ms) 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.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-03-07 15:56:14.682389"], ["updated_at", "2016-03-07 15:56:14.682389"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.4ms) 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.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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]]  (0.2ms) 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-03-07 15:56:14.744282"], ["updated_at", "2016-03-07 15:56:14.744282"]]  (0.2ms) 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"."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.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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:14.758665"], ["updated_at", "2016-03-07 15:56:14.758665"]]  (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", "3"]]  (0.3ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:14.827229"], ["updated_at", "2016-03-07 15:56:14.827229"]]  (0.1ms) 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.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.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.2ms) 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" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "2"]]  (0.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.2ms) 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "3"]]  (0.2ms) 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.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (1.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]] 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.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" = ? 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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2016-03-07 15:56:15.163244"], ["updated_at", "2016-03-07 15:56:15.163244"]]  (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.1ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-03-07 15:56:15.181234"], ["updated_at", "2016-03-07 15:56:15.181234"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_groups" CoalescingPanda::Group Load (0.3ms) 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.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 2]]  (2.0ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::GroupMembership Load (0.3ms) SELECT "coalescing_panda_group_memberships".* FROM "coalescing_panda_group_memberships"  (0.2ms) 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 115' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 115' 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 115"], ["key", "Key 115"], ["secret", "Account 115"], ["canvas_account_id", "114"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:15.291485"], ["updated_at", "2016-03-07 15:56:15.291485"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 116' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 116' 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 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:15.369829"], ["updated_at", "2016-03-07 15:56:15.369829"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "45"], ["created_at", "2016-03-07 15:56:15.384000"], ["updated_at", "2016-03-07 15:56:15.384000"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "40"], ["created_at", "2016-03-07 15:56:15.398186"], ["updated_at", "2016-03-07 15:56:15.398186"]]  (0.2ms) 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.2ms) 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", "2016-03-07 15:56:15.466601"], ["updated_at", "2016-03-07 15:56:15.466601"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "2016-03-07 15:56:15.538440"], ["id", 1]]  (0.1ms) 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", "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.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.1ms) SAVEPOINT active_record_1 SQL (0.3ms) 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-03-07 15:56:15.562441"], ["updated_at", "2016-03-07 15:56:15.562441"]]  (0.1ms) 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.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" = ? 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", "3"]]  (0.2ms) 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", "14"], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2016-03-07 15:56:15.627761"], ["updated_at", "2016-03-07 15:56:15.627761"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::GroupMembership Load (0.3ms) 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.1ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (1.5ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Enrollment Load (0.4ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.2ms) 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 117' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 117' 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 117"], ["key", "Key 117"], ["secret", "Account 117"], ["canvas_account_id", "116"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:15.733550"], ["updated_at", "2016-03-07 15:56:15.733550"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 118' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 118' 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 118"], ["key", "Key 118"], ["secret", "Account 118"], ["canvas_account_id", "117"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:15.758378"], ["updated_at", "2016-03-07 15:56:15.758378"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", "46"], ["created_at", "2016-03-07 15:56:15.827353"], ["updated_at", "2016-03-07 15:56:15.827353"]]  (0.2ms) 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", "41"], ["created_at", "2016-03-07 15:56:15.839001"], ["updated_at", "2016-03-07 15:56:15.839001"]]  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) 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", "2016-03-07 15:56:15.919165"], ["updated_at", "2016-03-07 15:56:15.919165"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:56:15.931354"], ["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.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-03-07 15:56:15.947500"], ["updated_at", "2016-03-07 15:56:15.947500"]]  (0.4ms) 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"."id" != 1) [["coalescing_panda_course_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" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "1"]]  (0.2ms) 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-03-07 15:56:16.017356"], ["updated_at", "2016-03-07 15:56:16.017356"]]  (0.2ms) 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.2ms) 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-03-07 15:56:16.034081"], ["updated_at", "2016-03-07 15:56:16.034081"]]  (0.2ms) 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.2ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:16.049566"], ["updated_at", "2016-03-07 15:56:16.049566"]]  (0.4ms) 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]] 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.3ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.3ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.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", "2"]]  (0.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.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.2ms) 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.2ms) 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]] 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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n"], ["updated_at", "2016-03-07 15:56:16.380848"], ["id", 1]]  (0.2ms) 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "2"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "3"]]  (0.2ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Enrollment Load (0.7ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_enrollments"."coalescing_panda_section_id" = "coalescing_panda_sections"."id" WHERE "coalescing_panda_sections"."coalescing_panda_course_id" = ? AND ("coalescing_panda_enrollments"."id" NOT IN (2, 3)) [["coalescing_panda_course_id", 1]] CoalescingPanda::User Load (0.2ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] CoalescingPanda::Submission Load (0.8ms) 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]]  (50.9ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.4ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Enrollment Load (0.3ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.2ms) 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 119' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 119' 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 119"], ["key", "Key 119"], ["secret", "Account 119"], ["canvas_account_id", "118"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:16.677750"], ["updated_at", "2016-03-07 15:56:16.677750"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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 120' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 120' 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 120"], ["key", "Key 120"], ["secret", "Account 120"], ["canvas_account_id", "119"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:16.751308"], ["updated_at", "2016-03-07 15:56:16.751308"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "47"], ["created_at", "2016-03-07 15:56:16.765254"], ["updated_at", "2016-03-07 15:56:16.765254"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "42"], ["created_at", "2016-03-07 15:56:16.777867"], ["updated_at", "2016-03-07 15:56:16.777867"]]  (0.2ms) 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.2ms) 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", "2016-03-07 15:56:16.853751"], ["updated_at", "2016-03-07 15:56:16.853751"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-07 15:56:16.866836"], ["id", 1]]  (0.2ms) 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.2ms) 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-03-07 15:56:16.888760"], ["updated_at", "2016-03-07 15:56:16.888760"]]  (0.2ms) 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"."id" != 1) [["coalescing_panda_course_id", 1]] CoalescingPanda::User Load (0.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."coalescing_panda_lti_account_id" = ? AND "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.2ms) 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-03-07 15:56:16.960595"], ["updated_at", "2016-03-07 15:56:16.960595"]]  (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.2ms) 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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:16.975832"], ["updated_at", "2016-03-07 15:56:16.975832"]]  (0.3ms) 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"."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.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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:17.055104"], ["updated_at", "2016-03-07 15:56:17.055104"]]  (0.1ms) 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.2ms) 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "2"]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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"]]  (44.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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.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]] 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.2ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-03-07 15:56:17.319751"], ["id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::Section Load (0.3ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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", "2"]]  (0.2ms) SAVEPOINT active_record_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" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SAVEPOINT active_record_1  (0.2ms) 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.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) 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.3ms) 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.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.3ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (1.1ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Enrollment Load (0.4ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.2ms) 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 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 121' 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 121"], ["key", "Key 121"], ["secret", "Account 121"], ["canvas_account_id", "120"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:17.625384"], ["updated_at", "2016-03-07 15:56:17.625384"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 122' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 122' 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 122"], ["key", "Key 122"], ["secret", "Account 122"], ["canvas_account_id", "121"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:17.652173"], ["updated_at", "2016-03-07 15:56:17.652173"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "48"], ["created_at", "2016-03-07 15:56:17.717138"], ["updated_at", "2016-03-07 15:56:17.717138"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", "43"], ["created_at", "2016-03-07 15:56:17.728879"], ["updated_at", "2016-03-07 15:56:17.728879"]]  (0.2ms) 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.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-03-07 15:56:17.806060"], ["updated_at", "2016-03-07 15:56:17.806060"]]  (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-03-07 15:56:17.815788"], ["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.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-03-07 15:56:17.830079"], ["updated_at", "2016-03-07 15:56:17.830079"]]  (0.2ms) 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"."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.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-03-07 15:56:17.895975"], ["updated_at", "2016-03-07 15:56:17.895975"]]  (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.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-03-07 15:56:17.909936"], ["updated_at", "2016-03-07 15:56:17.909936"]]  (0.2ms) 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.2ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:17.977634"], ["updated_at", "2016-03-07 15:56:17.977634"]]  (0.2ms) 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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.2ms) SAVEPOINT active_record_1 SQL (53.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.2ms) 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" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.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.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.2ms) 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]] 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.2ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :users\n"], ["updated_at", "2016-03-07 15:56:18.260878"], ["id", 1]]  (0.1ms) 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"."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.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]]  (0.4ms) SAVEPOINT active_record_1  (0.2ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::User Load (0.4ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" INNER JOIN "coalescing_panda_enrollments" ON "coalescing_panda_users"."id" = "coalescing_panda_enrollments"."coalescing_panda_user_id" INNER JOIN "coalescing_panda_sections" ON "coalescing_panda_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.3ms) 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.1ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? LIMIT 1 [["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"."coalescing_panda_user_id" = ? [["coalescing_panda_course_id", 1], ["coalescing_panda_user_id", 1]]  (0.2ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."id" = ? [["id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 CoalescingPanda::Submission Load (0.3ms) SELECT "coalescing_panda_submissions".* FROM "coalescing_panda_submissions" WHERE "coalescing_panda_submissions"."coalescing_panda_user_id" = ? [["coalescing_panda_user_id", 1]] SQL (0.2ms) DELETE FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (1.9ms) rollback transaction  (0.2ms) begin transaction CoalescingPanda::Enrollment Load (0.4ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments"  (0.4ms) 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 123' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 123' 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 123"], ["key", "Key 123"], ["secret", "Account 123"], ["canvas_account_id", "122"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:18.523655"], ["updated_at", "2016-03-07 15:56:18.523655"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 124' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 124' 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 124"], ["key", "Key 124"], ["secret", "Account 124"], ["canvas_account_id", "123"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:18.547914"], ["updated_at", "2016-03-07 15:56:18.547914"]]  (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", "49"], ["created_at", "2016-03-07 15:56:18.560378"], ["updated_at", "2016-03-07 15:56:18.560378"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "44"], ["created_at", "2016-03-07 15:56:18.620292"], ["updated_at", "2016-03-07 15:56:18.620292"]]  (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.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-03-07 15:56:18.640379"], ["updated_at", "2016-03-07 15:56:18.640379"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :sections\n- :users\n- :enrollments\n- :assignments\n- :assignment_groups\n- :submissions\n- :groups\n- :group_memberships\n"], ["updated_at", "2016-03-07 15:56:18.651986"], ["id", 1]]  (0.2ms) 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.2ms) 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", "2016-03-07 15:56:18.721714"], ["updated_at", "2016-03-07 15:56:18.721714"]]  (0.2ms) 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"."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.2ms) 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-03-07 15:56:18.741069"], ["updated_at", "2016-03-07 15:56:18.741069"]]  (0.2ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]]  (0.2ms) 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", "2"], ["name", "student1@test.com"], ["login_id", "student1@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:18.804739"], ["updated_at", "2016-03-07 15:56:18.804739"]]  (0.2ms) 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.1ms) 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", "3"], ["name", "student2@test.com"], ["login_id", "student2@test.com"], ["sis_id", ""], ["created_at", "2016-03-07 15:56:18.819271"], ["updated_at", "2016-03-07 15:56:18.819271"]]  (0.2ms) 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]] CoalescingPanda::Section Load (0.3ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.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.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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.2ms) 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", "2"], ["coalescing_panda_user_id", 2], ["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.2ms) 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" = ? LIMIT 1 [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"]] CoalescingPanda::Enrollment Load (0.2ms) SELECT "coalescing_panda_enrollments".* FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."coalescing_panda_section_id" = ? 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.2ms) SELECT "coalescing_panda_sections".* FROM "coalescing_panda_sections" WHERE "coalescing_panda_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.3ms) SELECT "coalescing_panda_users".* FROM "coalescing_panda_users" WHERE "coalescing_panda_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.2ms) 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.1ms) 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]] CoalescingPanda::CanvasBatch Load (0.3ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.2ms) SAVEPOINT active_record_1 SQL (0.2ms) 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-03-07 15:56:19.111610"], ["id", 1]]  (0.1ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "2"]]  (0.2ms) SAVEPOINT active_record_1  (0.1ms) 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"."canvas_user_id" = ? ORDER BY "coalescing_panda_users"."id" ASC LIMIT 1 [["coalescing_panda_lti_account_id", 1], ["canvas_user_id", "3"]]  (0.2ms) SAVEPOINT active_record_1  (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 (2, 3)) [["coalescing_panda_course_id", 1]] CoalescingPanda::Enrollment Load (0.2ms) 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.1ms) 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]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_enrollments" SET "workflow_state" = ?, "updated_at" = ? WHERE "coalescing_panda_enrollments"."id" = ? [["workflow_state", "deleted"], ["updated_at", "2016-03-07 15:56:19.264557"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 SQL (0.4ms) 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.3ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments"  (0.2ms) SELECT COUNT(*) FROM "coalescing_panda_enrollments" WHERE "coalescing_panda_enrollments"."workflow_state" = ? [["workflow_state", "deleted"]]  (0.4ms) SELECT COUNT(*) FROM "coalescing_panda_users" WHERE "coalescing_panda_users"."workflow_state" = ? [["workflow_state", "deleted"]]  (1.8ms) 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 2ms (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) SAVEPOINT 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", "2016-03-07 15:56:30.671777"], ["updated_at", "2016-03-07 15:56:30.671777"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-03-07 15:56:30.730885"], ["updated_at", "2016-03-07 15:56:30.730885"]]  (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", "2016-03-07 16:56:30.750516"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-07 15:56:30.751682"], ["updated_at", "2016-03-07 15:56:30.751682"]]  (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 25ms (Views: 7.1ms | 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.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.7ms | 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", "2016-03-07 15:56:30.783852"], ["updated_at", "2016-03-07 15:56:30.783852"]]  (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.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", "2016-03-07 15:56:30.793885"], ["updated_at", "2016-03-07 15:56:30.793885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "1"], ["created_at", "2016-03-07 15:56:30.797349"], ["updated_at", "2016-03-07 15:56:30.797349"]]  (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", "2016-03-07 15:56:30.800730"], ["updated_at", "2016-03-07 15:56:30.800730"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.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 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-03-07 15:56:30.864183"], ["updated_at", "2016-03-07 15:56:30.864183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:30.867215"], ["updated_at", "2016-03-07 15:56:30.867215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:30.869021"], ["updated_at", "2016-03-07 15:56:30.869021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-03-07 15:56:30.870224"], ["updated_at", "2016-03-07 15:56:30.870224"]]  (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", "2016-03-07 15:56:30.875529"], ["updated_at", "2016-03-07 15:56:30.875529"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:30.878251"], ["updated_at", "2016-03-07 15:56:30.878251"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:30.880038"], ["updated_at", "2016-03-07 15:56:30.880038"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-07 15:56:30.881152"], ["updated_at", "2016-03-07 15:56:30.881152"]]  (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.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-03-07 15:56:30.898278"], ["updated_at", "2016-03-07 15:56:30.898278"]]  (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.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", "2016-03-07 15:56:30.902596"], ["updated_at", "2016-03-07 15:56:30.902596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:30.904752"], ["updated_at", "2016-03-07 15:56:30.904752"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-03-07 15:56:30.906061"], ["updated_at", "2016-03-07 15:56:30.906061"]]  (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 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", "2016-03-07 15:56:30.912639"], ["updated_at", "2016-03-07 15:56:30.912639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:30.915648"], ["updated_at", "2016-03-07 15:56:30.915648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:30.917266"], ["updated_at", "2016-03-07 15:56:30.917266"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-03-07 15:56:30.918368"], ["updated_at", "2016-03-07 15:56:30.918368"]]  (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-03-07 15:56:30.922969"], ["updated_at", "2016-03-07 15:56:30.922969"]]  (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-03-07 15:56:30.926093"], ["updated_at", "2016-03-07 15:56:30.926093"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:30.927848"], ["updated_at", "2016-03-07 15:56:30.927848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-03-07 15:56:30.928976"], ["updated_at", "2016-03-07 15:56:30.928976"]]  (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", "2016-03-07 15:56:30.930581"], ["updated_at", "2016-03-07 15:56:30.930581"]]  (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", "2016-03-07 15:56:30.933520"], ["updated_at", "2016-03-07 15:56:30.933520"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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", "2016-03-07 15:56:30.938788"], ["updated_at", "2016-03-07 15:56:30.938788"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:30.942054"], ["updated_at", "2016-03-07 15:56:30.942054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:30.943713"], ["updated_at", "2016-03-07 15:56:30.943713"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-03-07 15:56:30.944882"], ["updated_at", "2016-03-07 15:56:30.944882"]]  (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.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", "2016-03-07 15:56:30.951706"], ["updated_at", "2016-03-07 15:56:30.951706"]]  (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.1ms) 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-03-08 15:56:30.964324"], ["created_at", "2016-03-07 15:56:30.965448"], ["updated_at", "2016-03-07 15:56:30.965448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (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", "2016-03-07 15:56:30.974195"], ["updated_at", "2016-03-07 15:56:30.974195"]]  (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", "2016-03-07 15:56:30.975702"], ["updated_at", "2016-03-07 15:56:30.975702"]]  (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-03-07 15:56:30.976809"], ["updated_at", "2016-03-07 15:56:30.976809"]]  (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.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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 16' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:56:30.988172"], ["updated_at", "2016-03-07 15:56:30.988172"]]  (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-03-07 15:56:30.992429"], ["updated_at", "2016-03-07 15:56:30.992429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-07 15:56:30.994531"], ["updated_at", "2016-03-07 15:56:30.994531"]]  (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 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.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", "2016-03-07 15:56:31.002782"], ["updated_at", "2016-03-07 15:56:31.002782"]]  (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.1ms) 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", "2016-03-07 15:56:31.008469"], ["updated_at", "2016-03-07 15:56:31.008469"]]  (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", "9"], ["created_at", "2016-03-07 15:56:31.010993"], ["updated_at", "2016-03-07 15:56:31.010993"]]  (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 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:31.016910"], ["updated_at", "2016-03-07 15:56:31.016910"]]  (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", "2016-03-07 15:56:31.021520"], ["updated_at", "2016-03-07 15:56:31.021520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2016-03-07 15:56:31.023699"], ["updated_at", "2016-03-07 15:56:31.023699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:56:31.025048"], ["updated_at", "2016-03-07 15:56:31.025048"]]  (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", "2016-03-07 15:56:31.028882"], ["updated_at", "2016-03-07 15:56:31.028882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.030889"], ["updated_at", "2016-03-07 15:56:31.030889"]]  (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-03-07 15:56:31.032052"], ["updated_at", "2016-03-07 15:56:31.032052"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-07 15:56:31.036411"], ["updated_at", "2016-03-07 15:56:31.036411"]]  (0.0ms) 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", 1], ["canvas_term_id", "12"], ["created_at", "2016-03-07 15:56:31.038057"], ["updated_at", "2016-03-07 15:56:31.038057"]]  (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", "2016-03-07 15:56:31.040878"], ["updated_at", "2016-03-07 15:56:31.040878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-07 15:56:31.042739"], ["updated_at", "2016-03-07 15:56:31.042739"]]  (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.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-03-07 15:56:31.046858"], ["updated_at", "2016-03-07 15:56:31.046858"]]  (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", "2016-03-07 15:56:31.049134"], ["updated_at", "2016-03-07 15:56:31.049134"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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-03-07 15:56:31.053925"], ["updated_at", "2016-03-07 15:56:31.053925"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:31.056855"], ["updated_at", "2016-03-07 15:56:31.056855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:31.058557"], ["updated_at", "2016-03-07 15:56:31.058557"]]  (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.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-03-07 15:56:31.129244"], ["updated_at", "2016-03-07 15:56:31.129244"]]  (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", "2016-03-07 15:56:31.131490"], ["updated_at", "2016-03-07 15:56:31.131490"]]  (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", "2016-03-07 15:56:31.140356"], ["updated_at", "2016-03-07 15:56:31.140356"]]  (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 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-03-07 15:56:31.145416"], ["updated_at", "2016-03-07 15:56:31.145416"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.147558"], ["updated_at", "2016-03-07 15:56:31.147558"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:31.149118"], ["updated_at", "2016-03-07 15:56:31.149118"]]  (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-03-07 15:56:31.151546"], ["updated_at", "2016-03-07 15:56:31.151546"]]  (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", "2016-03-07 15:56:31.158574"], ["updated_at", "2016-03-07 15:56:31.158574"]]  (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", "2016-03-07 15:56:31.160622"], ["updated_at", "2016-03-07 15:56:31.160622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:56:31.163052"], ["updated_at", "2016-03-07 15:56:31.163052"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:31.165568"], ["updated_at", "2016-03-07 15:56:31.165568"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.167064"], ["updated_at", "2016-03-07 15:56:31.167064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-07 15:56:31.168173"], ["updated_at", "2016-03-07 15:56:31.168173"]]  (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-03-07 15:56:31.169370"], ["updated_at", "2016-03-07 15:56:31.169370"]]  (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 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", "2016-03-07 15:56:31.175583"], ["updated_at", "2016-03-07 15:56:31.175583"]]  (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", "2016-03-07 15:56:31.177898"], ["updated_at", "2016-03-07 15:56:31.177898"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:31.180420"], ["updated_at", "2016-03-07 15:56:31.180420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:56:31.183163"], ["updated_at", "2016-03-07 15:56:31.183163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.184587"], ["updated_at", "2016-03-07 15:56:31.184587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:31.185646"], ["updated_at", "2016-03-07 15:56:31.185646"]]  (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-03-07 15:56:31.186789"], ["updated_at", "2016-03-07 15:56:31.186789"]]  (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", "2016-03-07 15:56:31.192314"], ["updated_at", "2016-03-07 15:56:31.192314"]]  (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", "2016-03-07 15:56:31.194425"], ["updated_at", "2016-03-07 15:56:31.194425"]]  (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", "2016-03-07 15:56:31.197628"], ["updated_at", "2016-03-07 15:56:31.197628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:56:31.200494"], ["updated_at", "2016-03-07 15:56:31.200494"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.201919"], ["updated_at", "2016-03-07 15:56:31.201919"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-07 15:56:31.203000"], ["updated_at", "2016-03-07 15:56:31.203000"]]  (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-03-07 15:56:31.204112"], ["updated_at", "2016-03-07 15:56:31.204112"]]  (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", "2016-03-07 15:56:31.205750"], ["updated_at", "2016-03-07 15:56:31.205750"]]  (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", "4"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-03-07 15:56:31.207613"], ["updated_at", "2016-03-07 15:56:31.207613"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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-03-07 15:56:31.212870"], ["updated_at", "2016-03-07 15:56:31.212870"]]  (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", "2016-03-07 15:56:31.214851"], ["updated_at", "2016-03-07 15:56:31.214851"]]  (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", "2016-03-07 15:56:31.217723"], ["updated_at", "2016-03-07 15:56:31.217723"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:31.220738"], ["updated_at", "2016-03-07 15:56:31.220738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.222224"], ["updated_at", "2016-03-07 15:56:31.222224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:31.223325"], ["updated_at", "2016-03-07 15:56:31.223325"]]  (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-03-07 15:56:31.224435"], ["updated_at", "2016-03-07 15:56:31.224435"]]  (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-03-07 15:56:31.225995"], ["updated_at", "2016-03-07 15:56:31.225995"]]  (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-03-07 15:56:31.227877"], ["updated_at", "2016-03-07 15:56:31.227877"]]  (0.1ms) RELEASE 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 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-03-07 15:56:31.233008"], ["updated_at", "2016-03-07 15:56:31.233008"]]  (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", "2016-03-07 15:56:31.235489"], ["updated_at", "2016-03-07 15:56:31.235489"]]  (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-03-07 15:56:31.238325"], ["updated_at", "2016-03-07 15:56:31.238325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:56:31.241515"], ["updated_at", "2016-03-07 15:56:31.241515"]]  (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", "19"], ["created_at", "2016-03-07 15:56:31.244143"], ["updated_at", "2016-03-07 15:56:31.244143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-07 15:56:31.245706"], ["updated_at", "2016-03-07 15:56:31.245706"]]  (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-03-07 15:56:31.247329"], ["updated_at", "2016-03-07 15:56:31.247329"]]  (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) 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 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.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-03-07 15:56:31.261055"], ["updated_at", "2016-03-07 15:56:31.261055"]]  (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 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", "2016-03-07 15:56:31.264897"], ["updated_at", "2016-03-07 15:56:31.264897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-07 15:56:31.266681"], ["updated_at", "2016-03-07 15:56:31.266681"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:31.267818"], ["updated_at", "2016-03-07 15:56:31.267818"]]  (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 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-03-07 15:56:31.274509"], ["updated_at", "2016-03-07 15:56:31.274509"]]  (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", "2016-03-07 15:56:31.278506"], ["updated_at", "2016-03-07 15:56:31.278506"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-07 15:56:31.280433"], ["updated_at", "2016-03-07 15:56:31.280433"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:31.281639"], ["updated_at", "2016-03-07 15:56:31.281639"]]  (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", "2016-03-07 15:56:31.286331"], ["updated_at", "2016-03-07 15:56:31.286331"]]  (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 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", "2016-03-07 15:56:31.289628"], ["updated_at", "2016-03-07 15:56:31.289628"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2016-03-07 15:56:31.291330"], ["updated_at", "2016-03-07 15:56:31.291330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:31.292411"], ["updated_at", "2016-03-07 15:56:31.292411"]]  (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-03-07 15:56:31.293877"], ["updated_at", "2016-03-07 15:56:31.293877"]]  (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-03-07 15:56:31.295320"], ["updated_at", "2016-03-07 15:56:31.295320"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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", "2016-03-07 15:56:31.300261"], ["updated_at", "2016-03-07 15:56:31.300261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "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-03-07 15:56:31.303225"], ["updated_at", "2016-03-07 15:56:31.303225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-03-07 15:56:31.304926"], ["updated_at", "2016-03-07 15:56:31.304926"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:31.306125"], ["updated_at", "2016-03-07 15:56:31.306125"]]  (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.1ms) 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-03-07 15:56:31.319683"], ["updated_at", "2016-03-07 15:56:31.319683"]]  (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", "test8@test.com"], ["name", "Factory User 8"], ["canvas_user_id", "8"], ["created_at", "2016-03-07 15:56:31.322155"], ["updated_at", "2016-03-07 15:56:31.322155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:31.325484"], ["updated_at", "2016-03-07 15:56:31.325484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:31.328258"], ["updated_at", "2016-03-07 15:56:31.328258"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.329721"], ["updated_at", "2016-03-07 15:56:31.329721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:31.330876"], ["updated_at", "2016-03-07 15:56:31.330876"]]  (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", "2016-03-07 15:56:31.332117"], ["updated_at", "2016-03-07 15:56:31.332117"]]  (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 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-03-07 15:56:31.338710"], ["updated_at", "2016-03-07 15:56:31.338710"]]  (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", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-03-07 15:56:31.340941"], ["updated_at", "2016-03-07 15:56:31.340941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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 (54.1ms) 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-03-07 15:56:31.400335"], ["updated_at", "2016-03-07 15:56:31.400335"]]  (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.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-03-07 15:56:31.404248"], ["updated_at", "2016-03-07 15:56:31.404248"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.405702"], ["updated_at", "2016-03-07 15:56:31.405702"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-07 15:56:31.406934"], ["updated_at", "2016-03-07 15:56:31.406934"]]  (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-03-07 15:56:31.408088"], ["updated_at", "2016-03-07 15:56:31.408088"]]  (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 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-03-07 15:56:31.414000"], ["updated_at", "2016-03-07 15:56:31.414000"]]  (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", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2016-03-07 15:56:31.416042"], ["updated_at", "2016-03-07 15:56:31.416042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:31.418543"], ["updated_at", "2016-03-07 15:56:31.418543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) 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-03-07 15:56:31.421420"], ["updated_at", "2016-03-07 15:56:31.421420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.422939"], ["updated_at", "2016-03-07 15:56:31.422939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:31.424023"], ["updated_at", "2016-03-07 15:56:31.424023"]]  (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-03-07 15:56:31.425608"], ["updated_at", "2016-03-07 15:56:31.425608"]]  (0.0ms) RELEASE 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 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-03-07 15:56:31.431747"], ["updated_at", "2016-03-07 15:56:31.431747"]]  (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", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2016-03-07 15:56:31.433912"], ["updated_at", "2016-03-07 15:56:31.433912"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:56:31.436549"], ["updated_at", "2016-03-07 15:56:31.436549"]]  (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 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-03-07 15:56:31.439630"], ["updated_at", "2016-03-07 15:56:31.439630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.441104"], ["updated_at", "2016-03-07 15:56:31.441104"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-07 15:56:31.442164"], ["updated_at", "2016-03-07 15:56:31.442164"]]  (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-03-07 15:56:31.443215"], ["updated_at", "2016-03-07 15:56:31.443215"]]  (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-03-07 15:56:31.444768"], ["updated_at", "2016-03-07 15:56:31.444768"]]  (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-03-07 15:56:31.446465"], ["updated_at", "2016-03-07 15:56:31.446465"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO 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 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", "2016-03-07 15:56:31.452939"], ["updated_at", "2016-03-07 15:56:31.452939"]]  (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-03-07 15:56:31.455441"], ["updated_at", "2016-03-07 15:56:31.455441"]]  (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.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", "2016-03-07 15:56:31.458570"], ["updated_at", "2016-03-07 15:56:31.458570"]]  (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.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", "2016-03-07 15:56:31.462310"], ["updated_at", "2016-03-07 15:56:31.462310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.464240"], ["updated_at", "2016-03-07 15:56:31.464240"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:31.465665"], ["updated_at", "2016-03-07 15:56:31.465665"]]  (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-03-07 15:56:31.467012"], ["updated_at", "2016-03-07 15:56:31.467012"]]  (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", "1"], ["created_at", "2016-03-07 15:56:31.468828"], ["updated_at", "2016-03-07 15:56:31.468828"]]  (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", "2016-03-07 15:56:31.471199"], ["updated_at", "2016-03-07 15:56:31.471199"]]  (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 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", "2016-03-07 15:56:31.476999"], ["updated_at", "2016-03-07 15:56:31.476999"]]  (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", "2016-03-07 15:56:31.478995"], ["updated_at", "2016-03-07 15:56:31.478995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:56:31.481620"], ["updated_at", "2016-03-07 15:56:31.481620"]]  (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.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", "2016-03-07 15:56:31.485127"], ["updated_at", "2016-03-07 15:56:31.485127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-07 15:56:31.486769"], ["updated_at", "2016-03-07 15:56:31.486769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-07 15:56:31.487915"], ["updated_at", "2016-03-07 15:56:31.487915"]]  (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-03-07 15:56:31.489080"], ["updated_at", "2016-03-07 15:56:31.489080"]]  (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", "2016-03-07 15:56:31.495677"], ["updated_at", "2016-03-07 15:56:31.495677"]]  (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", "2016-03-07 15:56:31.501210"], ["updated_at", "2016-03-07 15:56:31.501210"]]  (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-03-07 15:56:31.503416"], ["updated_at", "2016-03-07 15:56:31.503416"]]  (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-03-07 15:56:31.505237"], ["updated_at", "2016-03-07 15:56:31.505237"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) 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) SAVEPOINT 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", "2016-03-07 15:56:31.512080"], ["updated_at", "2016-03-07 15:56:31.512080"]]  (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", "2016-03-07 15:56:31.518345"], ["updated_at", "2016-03-07 15:56:31.518345"]]  (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-03-07 15:56:31.523130"], ["updated_at", "2016-03-07 15:56:31.523130"]]  (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-03-07 15:56:31.525463"], ["updated_at", "2016-03-07 15:56:31.525463"]]  (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", "2016-03-07 15:56:31.527829"], ["updated_at", "2016-03-07 15:56:31.527829"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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-03-07 15:56:31.532350"], ["updated_at", "2016-03-07 15:56:31.532350"]]  (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 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-03-07 15:56:31.539754"], ["updated_at", "2016-03-07 15:56:31.539754"]]  (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.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-03-07 15:56:31.550623"], ["updated_at", "2016-03-07 15:56:31.550623"]]  (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", "2016-03-07 15:56:31.552588"], ["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", "2016-03-07 15:56:31.558778"], ["updated_at", "2016-03-07 15:56:31.558778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:56:31.561928"], ["updated_at", "2016-03-07 15:56:31.561928"]]  (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-03-07 15:56:31.563318"], ["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.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 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:31.568658"], ["updated_at", "2016-03-07 15:56:31.568658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:56:31.572329"], ["updated_at", "2016-03-07 15:56:31.572329"]]  (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-03-07 15:56:31.573818"], ["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", "2016-03-07 15:56:31.586371"], ["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", "2016-03-07 15:56:31.590706"], ["updated_at", "2016-03-07 15:56:31.590706"]]  (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-03-07 15:56:31.592502"], ["updated_at", "2016-03-07 15:56:31.592502"]]  (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", "2016-03-07 15:56:31.593984"], ["updated_at", "2016-03-07 15:56:31.593984"]]  (0.1ms) 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", "2016-03-07 15:56:31.648368"], ["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-03-07 15:56:31.649561"], ["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", "2016-03-07 15:56:31.654913"], ["updated_at", "2016-03-07 15:56:31.654913"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:56:31.658419"], ["updated_at", "2016-03-07 15:56:31.658419"]]  (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-03-07 15:56:31.659816"], ["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-03-07 15:56:31.663501"], ["updated_at", "2016-03-07 15:56:31.663501"]]  (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", "2016-03-07 15:56:31.665712"], ["updated_at", "2016-03-07 15:56:31.665712"]]  (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", "2016-03-07 15:56:31.671967"], ["updated_at", "2016-03-07 15:56:31.671967"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:56:31.675295"], ["updated_at", "2016-03-07 15:56:31.675295"]]  (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-03-07 15:56:31.676644"], ["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", "2016-03-07 15:56:31.678573"], ["updated_at", "2016-03-07 15:56:31.678573"]]  (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-03-07 15:56:31.680292"], ["updated_at", "2016-03-07 15:56:31.680292"]]  (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", "2016-03-07 15:56:31.681846"], ["updated_at", "2016-03-07 15:56:31.681846"]]  (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.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 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", "2016-03-07 15:56:31.688843"], ["updated_at", "2016-03-07 15:56:31.688843"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:56:31.693018"], ["updated_at", "2016-03-07 15:56:31.693018"]]  (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- :users\n"], ["updated_at", "2016-03-07 15:56:31.694877"], ["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", "2016-03-07 15:56:31.700663"], ["updated_at", "2016-03-07 15:56:31.700663"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-07 15:56:31.703897"], ["updated_at", "2016-03-07 15:56:31.703897"]]  (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-03-07 15:56:31.705294"], ["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.1ms) 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.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-03-07 15:56:31.712738"], ["updated_at", "2016-03-07 15:56:31.712738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-07 15:56:31.717175"], ["updated_at", "2016-03-07 15:56:31.717175"]]  (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-03-07 15:56:31.718902"], ["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", "2016-03-07 15:56:31.721749"], ["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-03-07 15:56:31.730185"], ["updated_at", "2016-03-07 15:56:31.730185"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:31.733231"], ["updated_at", "2016-03-07 15:56:31.733231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:31.735265"], ["updated_at", "2016-03-07 15:56:31.735265"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2016-03-07 15:56:31.736750"], ["updated_at", "2016-03-07 15:56:31.736750"]]  (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", "2016-03-07 15:56:31.740161"], ["updated_at", "2016-03-07 15:56:31.740161"]]  (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-03-07 15:56:31.741885"], ["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.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", "2016-03-07 15:56:31.750643"], ["updated_at", "2016-03-07 15:56:31.750643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:31.753694"], ["updated_at", "2016-03-07 15:56:31.753694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:31.755514"], ["updated_at", "2016-03-07 15:56:31.755514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-07 15:56:31.756650"], ["updated_at", "2016-03-07 15:56:31.756650"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:31.759099"], ["updated_at", "2016-03-07 15:56:31.759099"]]  (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-03-07 15:56:31.760523"], ["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", "2016-03-07 15:56:31.767639"], ["updated_at", "2016-03-07 15:56:31.767639"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:31.770571"], ["updated_at", "2016-03-07 15:56:31.770571"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2016-03-07 15:56:31.772263"], ["updated_at", "2016-03-07 15:56:31.772263"]]  (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", "28"], ["created_at", "2016-03-07 15:56:31.774028"], ["updated_at", "2016-03-07 15:56:31.774028"]]  (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-03-07 15:56:31.778143"], ["updated_at", "2016-03-07 15:56:31.778143"]]  (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", "2016-03-07 15:56:31.779686"], ["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 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-03-07 15:56:31.788241"], ["updated_at", "2016-03-07 15:56:31.788241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-07 15:56:31.791683"], ["updated_at", "2016-03-07 15:56:31.791683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:31.793629"], ["updated_at", "2016-03-07 15:56:31.793629"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2016-03-07 15:56:31.794837"], ["updated_at", "2016-03-07 15:56:31.794837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:31.797489"], ["updated_at", "2016-03-07 15:56:31.797489"]]  (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-03-07 15:56:31.798886"], ["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 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-03-07 15:56:31.806410"], ["updated_at", "2016-03-07 15:56:31.806410"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:31.809647"], ["updated_at", "2016-03-07 15:56:31.809647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-03-07 15:56:31.811374"], ["updated_at", "2016-03-07 15:56:31.811374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:31.812507"], ["updated_at", "2016-03-07 15:56:31.812507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:31.814906"], ["updated_at", "2016-03-07 15:56:31.814906"]]  (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-03-07 15:56:31.816233"], ["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", "2016-03-07 15:56:31.823247"], ["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-03-07 15:56:31.827399"], ["updated_at", "2016-03-07 15:56:31.827399"]]  (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", "2016-03-07 15:56:31.830064"], ["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", "2016-03-07 15:56:31.833331"], ["updated_at", "2016-03-07 15:56:31.833331"]]  (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-03-07 15:56:31.835122"], ["updated_at", "2016-03-07 15:56:31.835122"]]  (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", "2016-03-07 15:56:31.836686"], ["updated_at", "2016-03-07 15:56:31.836686"]]  (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]]  (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", "2016-03-07 15:56:31.844137"], ["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"]]  (54.5ms) 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-03-07 15:56:31.914824"], ["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", "2016-03-07 15:56:31.918308"], ["updated_at", "2016-03-07 15:56:31.918308"]]  (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", "2016-03-07 15:56:31.920161"], ["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", "2016-03-07 15:56:31.936948"], ["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.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-03-07 15:56:31.939898"], ["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", "2016-03-07 15:56:31.953468"], ["updated_at", "2016-03-07 15:56:31.953468"]]  (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", "2016-03-07 15:56:31.955978"], ["updated_at", "2016-03-07 15:56:31.955978"]]  (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", "2016-03-07 15:56:31.957607"], ["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", "2016-03-07 15:56:31.968837"], ["updated_at", "2016-03-07 15:56:31.968837"]]  (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", "2016-03-07 15:56:31.971853"], ["updated_at", "2016-03-07 15:56:31.971853"]]  (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.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", "3"]]  (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"."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-03-07 15:56:31.977494"], ["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-03-07 15:56:31.978675"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.9ms) 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", "2016-03-07 15:56:31.987633"], ["updated_at", "2016-03-07 15:56:31.987633"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) 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", "2016-03-07 15:56:31.990844"], ["updated_at", "2016-03-07 15:56:31.990844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:31.992621"], ["updated_at", "2016-03-07 15:56:31.992621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-03-07 15:56:31.993838"], ["updated_at", "2016-03-07 15:56:31.993838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:31.997406"], ["updated_at", "2016-03-07 15:56:31.997406"]]  (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-03-07 15:56:31.999197"], ["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-03-07 15:56:32.001835"], ["updated_at", "2016-03-07 15:56:32.001835"]]  (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.8ms) rollback transaction  (0.1ms) 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", "2016-03-07 15:56:32.011008"], ["updated_at", "2016-03-07 15:56:32.011008"]]  (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", "2016-03-07 15:56:32.014421"], ["updated_at", "2016-03-07 15:56:32.014421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:32.016576"], ["updated_at", "2016-03-07 15:56:32.016576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-07 15:56:32.018009"], ["updated_at", "2016-03-07 15:56:32.018009"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.020767"], ["updated_at", "2016-03-07 15:56:32.020767"]]  (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-03-07 15:56:32.022341"], ["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", "2016-03-07 15:56:32.024674"], ["updated_at", "2016-03-07 15:56:32.024674"]]  (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-03-07 15:56:32.026498"], ["updated_at", "2016-03-07 15:56:32.026498"]]  (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-03-07 15:56:32.028417"], ["updated_at", "2016-03-07 15:56:32.028417"]]  (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.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.2ms) INSERT INTO "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-03-07 15:56:32.037159"], ["updated_at", "2016-03-07 15:56:32.037159"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 102"], ["key", "Key 102"], ["secret", "Account 102"], ["canvas_account_id", "101"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:32.040760"], ["updated_at", "2016-03-07 15:56:32.040760"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:32.042609"], ["updated_at", "2016-03-07 15:56:32.042609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-07 15:56:32.043952"], ["updated_at", "2016-03-07 15:56:32.043952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.046529"], ["updated_at", "2016-03-07 15:56:32.046529"]]  (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-03-07 15:56:32.047827"], ["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-03-07 15:56:32.051141"], ["updated_at", "2016-03-07 15:56:32.051141"]]  (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-03-07 15:56:32.054185"], ["updated_at", "2016-03-07 15:56:32.054185"]]  (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-03-07 15:56:32.056115"], ["updated_at", "2016-03-07 15:56:32.056115"]]  (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-03-07 15:56:32.057822"], ["updated_at", "2016-03-07 15:56:32.057822"]]  (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  (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", "2016-03-07 15:56:32.077580"], ["updated_at", "2016-03-07 15:56:32.077580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:32.080481"], ["updated_at", "2016-03-07 15:56:32.080481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-07 15:56:32.082081"], ["updated_at", "2016-03-07 15:56:32.082081"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (58.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:32.141888"], ["updated_at", "2016-03-07 15:56:32.141888"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.145041"], ["updated_at", "2016-03-07 15:56:32.145041"]]  (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-03-07 15:56:32.146489"], ["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", "2016-03-07 15:56:32.152689"], ["updated_at", "2016-03-07 15:56:32.152689"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (0.8ms) 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", "2016-03-07 15:56:32.160372"], ["updated_at", "2016-03-07 15:56:32.160372"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:32.163519"], ["updated_at", "2016-03-07 15:56:32.163519"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:32.165339"], ["updated_at", "2016-03-07 15:56:32.165339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2016-03-07 15:56:32.166453"], ["updated_at", "2016-03-07 15:56:32.166453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.168946"], ["updated_at", "2016-03-07 15:56:32.168946"]]  (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-03-07 15:56:32.170231"], ["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-03-07 15:56:32.172398"], ["updated_at", "2016-03-07 15:56:32.172398"]]  (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 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", "2016-03-07 15:56:32.190072"], ["updated_at", "2016-03-07 15:56:32.190072"]]  (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.2ms) INSERT INTO "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-03-07 15:56:32.193495"], ["updated_at", "2016-03-07 15:56:32.193495"]]  (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", "41"], ["created_at", "2016-03-07 15:56:32.195841"], ["updated_at", "2016-03-07 15:56:32.195841"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:32.197973"], ["updated_at", "2016-03-07 15:56:32.197973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.201476"], ["updated_at", "2016-03-07 15:56:32.201476"]]  (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-03-07 15:56:32.203391"], ["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-03-07 15:56:32.205833"], ["updated_at", "2016-03-07 15:56:32.205833"]]  (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.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 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 109"], ["key", "Key 109"], ["secret", "Account 109"], ["canvas_account_id", "108"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:32.214358"], ["updated_at", "2016-03-07 15:56:32.214358"]]  (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.2ms) INSERT INTO "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-03-07 15:56:32.217780"], ["updated_at", "2016-03-07 15:56:32.217780"]]  (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", "42"], ["created_at", "2016-03-07 15:56:32.219669"], ["updated_at", "2016-03-07 15:56:32.219669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:32.220800"], ["updated_at", "2016-03-07 15:56:32.220800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.223270"], ["updated_at", "2016-03-07 15:56:32.223270"]]  (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-03-07 15:56:32.224596"], ["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.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-03-07 15:56:32.226950"], ["updated_at", "2016-03-07 15:56:32.226950"]]  (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", "2016-03-07 15:56:32.229502"], ["updated_at", "2016-03-07 15:56:32.229502"]]  (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-03-07 15:56:32.231121"], ["updated_at", "2016-03-07 15:56:32.231121"]]  (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", "2016-03-07 15:56:32.232597"], ["updated_at", "2016-03-07 15:56:32.232597"]]  (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.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.1ms) 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", "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", "2016-03-07 15:56:32.261109"], ["updated_at", "2016-03-07 15:56:32.261109"]]  (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", "2016-03-07 15:56:32.264190"], ["updated_at", "2016-03-07 15:56:32.264190"]]  (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", "2016-03-07 15:56:32.266852"], ["updated_at", "2016-03-07 15:56:32.266852"]]  (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", "2016-03-07 15:56:32.269509"], ["updated_at", "2016-03-07 15:56:32.269509"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (1.2ms) 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.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", "2016-03-07 15:56:32.277843"], ["updated_at", "2016-03-07 15:56:32.277843"]]  (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.2ms) INSERT INTO "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-03-07 15:56:32.281191"], ["updated_at", "2016-03-07 15:56:32.281191"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-03-07 15:56:32.283098"], ["updated_at", "2016-03-07 15:56:32.283098"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:32.284381"], ["updated_at", "2016-03-07 15:56:32.284381"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.286868"], ["updated_at", "2016-03-07 15:56:32.286868"]]  (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-03-07 15:56:32.288166"], ["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-03-07 15:56:32.290272"], ["updated_at", "2016-03-07 15:56:32.290272"]]  (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-03-07 15:56:32.293580"], ["updated_at", "2016-03-07 15:56:32.293580"]]  (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-03-07 15:56:32.295872"], ["updated_at", "2016-03-07 15:56:32.295872"]]  (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", "2016-03-07 15:56:32.303807"], ["updated_at", "2016-03-07 15:56:32.303807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-07 15:56:32.306867"], ["updated_at", "2016-03-07 15:56:32.306867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2016-03-07 15:56:32.308992"], ["updated_at", "2016-03-07 15:56:32.308992"]]  (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", "39"], ["created_at", "2016-03-07 15:56:32.310998"], ["updated_at", "2016-03-07 15:56:32.310998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.314949"], ["updated_at", "2016-03-07 15:56:32.314949"]]  (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-03-07 15:56:32.316961"], ["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-03-07 15:56:32.319753"], ["updated_at", "2016-03-07 15:56:32.319753"]]  (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-03-07 15:56:32.322225"], ["updated_at", "2016-03-07 15:56:32.322225"]]  (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-03-07 15:56:32.323834"], ["updated_at", "2016-03-07 15:56:32.323834"]]  (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", "2016-03-07 15:56:32.325376"], ["updated_at", "2016-03-07 15:56:32.325376"]]  (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.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", "2016-03-07 15:56:32.398462"], ["updated_at", "2016-03-07 15:56:32.398462"]]  (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", "2016-03-07 15:56:32.400798"], ["updated_at", "2016-03-07 15:56:32.400798"]]  (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.2ms) 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-03-07 15:56:32.413365"], ["updated_at", "2016-03-07 15:56:32.413365"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:32.417069"], ["updated_at", "2016-03-07 15:56:32.417069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:32.418991"], ["updated_at", "2016-03-07 15:56:32.418991"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-03-07 15:56:32.420177"], ["updated_at", "2016-03-07 15:56:32.420177"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.422619"], ["updated_at", "2016-03-07 15:56:32.422619"]]  (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-03-07 15:56:32.424110"], ["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-03-07 15:56:32.427751"], ["updated_at", "2016-03-07 15:56:32.427751"]]  (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-03-07 15:56:32.430329"], ["updated_at", "2016-03-07 15:56:32.430329"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (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", "2016-03-07 15:56:32.437953"], ["updated_at", "2016-03-07 15:56:32.437953"]]  (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 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", "2016-03-07 15:56:32.440954"], ["updated_at", "2016-03-07 15:56:32.440954"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:32.442971"], ["updated_at", "2016-03-07 15:56:32.442971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-07 15:56:32.444217"], ["updated_at", "2016-03-07 15:56:32.444217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.447702"], ["updated_at", "2016-03-07 15:56:32.447702"]]  (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-03-07 15:56:32.450114"], ["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-03-07 15:56:32.453037"], ["updated_at", "2016-03-07 15:56:32.453037"]]  (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-03-07 15:56:32.455709"], ["updated_at", "2016-03-07 15:56:32.455709"]]  (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-03-07 15:56:32.457437"], ["updated_at", "2016-03-07 15:56:32.457437"]]  (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", "2016-03-07 15:56:32.459091"], ["updated_at", "2016-03-07 15:56:32.459091"]]  (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-03-07 15:56:32.474091"], ["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.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.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", "2016-03-07 15:56:32.491808"], ["updated_at", "2016-03-07 15:56:32.491808"]]  (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.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", "2016-03-07 15:56:32.495330"], ["updated_at", "2016-03-07 15:56:32.495330"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-07 15:56:32.497236"], ["updated_at", "2016-03-07 15:56:32.497236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:32.498413"], ["updated_at", "2016-03-07 15:56:32.498413"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.500963"], ["updated_at", "2016-03-07 15:56:32.500963"]]  (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-03-07 15:56:32.502343"], ["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-03-07 15:56:32.504574"], ["updated_at", "2016-03-07 15:56:32.504574"]]  (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-03-07 15:56:32.507088"], ["updated_at", "2016-03-07 15:56:32.507088"]]  (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-03-07 15:56:32.509392"], ["updated_at", "2016-03-07 15:56:32.509392"]]  (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-03-07 15:56:32.511686"], ["updated_at", "2016-03-07 15:56:32.511686"]]  (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.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", "2016-03-07 15:56:32.530738"], ["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.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 121' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:56:32.548302"], ["updated_at", "2016-03-07 15:56:32.548302"]]  (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-03-07 15:56:32.551878"], ["updated_at", "2016-03-07 15:56:32.551878"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-07 15:56:32.554178"], ["updated_at", "2016-03-07 15:56:32.554178"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:32.555762"], ["updated_at", "2016-03-07 15:56:32.555762"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.558921"], ["updated_at", "2016-03-07 15:56:32.558921"]]  (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-03-07 15:56:32.560595"], ["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-03-07 15:56:32.563253"], ["updated_at", "2016-03-07 15:56:32.563253"]]  (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-03-07 15:56:32.565866"], ["updated_at", "2016-03-07 15:56:32.565866"]]  (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-03-07 15:56:32.567968"], ["updated_at", "2016-03-07 15:56:32.567968"]]  (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-03-07 15:56:32.570107"], ["updated_at", "2016-03-07 15:56:32.570107"]]  (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"], ["updated_at", "2016-03-07 15:56:32.585658"], ["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.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.5ms) 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 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-03-07 15:56:32.662711"], ["updated_at", "2016-03-07 15:56:32.662711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:32.666029"], ["updated_at", "2016-03-07 15:56:32.666029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:32.668196"], ["updated_at", "2016-03-07 15:56:32.668196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2016-03-07 15:56:32.669315"], ["updated_at", "2016-03-07 15:56:32.669315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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", "2016-03-07 15:56:32.672869"], ["updated_at", "2016-03-07 15:56:32.672869"]]  (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-03-07 15:56:32.675361"], ["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-03-07 15:56:32.678445"], ["updated_at", "2016-03-07 15:56:32.678445"]]  (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-03-07 15:56:32.681213"], ["updated_at", "2016-03-07 15:56:32.681213"]]  (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-03-07 15:56:32.683019"], ["updated_at", "2016-03-07 15:56:32.683019"]]  (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", "2016-03-07 15:56:32.684681"], ["updated_at", "2016-03-07 15:56:32.684681"]]  (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", "2016-03-07 15:56:32.699800"], ["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-03-07 15:56:32.705238"], ["id", 1]]  (0.1ms) 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.3ms) 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 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.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", "2016-03-07 15:56:32.716001"], ["updated_at", "2016-03-07 15:56:32.716001"]]  (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", "2016-03-07 15:56:32.719952"], ["updated_at", "2016-03-07 15:56:32.719952"]]  (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", "50"], ["created_at", "2016-03-07 15:56:32.722242"], ["updated_at", "2016-03-07 15:56:32.722242"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:32.723860"], ["updated_at", "2016-03-07 15:56:32.723860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.727092"], ["updated_at", "2016-03-07 15:56:32.727092"]]  (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-03-07 15:56:32.728754"], ["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 127' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-07 15:56:32.736158"], ["updated_at", "2016-03-07 15:56:32.736158"]]  (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", "2016-03-07 15:56:32.739714"], ["updated_at", "2016-03-07 15:56:32.739714"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:32.741371"], ["updated_at", "2016-03-07 15:56:32.741371"]]  (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", "46"], ["created_at", "2016-03-07 15:56:32.742769"], ["updated_at", "2016-03-07 15:56:32.742769"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.745539"], ["updated_at", "2016-03-07 15:56:32.745539"]]  (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-03-07 15:56:32.747478"], ["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 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-03-07 15:56:32.757046"], ["updated_at", "2016-03-07 15:56:32.757046"]]  (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", "2016-03-07 15:56:32.760735"], ["updated_at", "2016-03-07 15:56:32.760735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2016-03-07 15:56:32.762709"], ["updated_at", "2016-03-07 15:56:32.762709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:32.763922"], ["updated_at", "2016-03-07 15:56:32.763922"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.766444"], ["updated_at", "2016-03-07 15:56:32.766444"]]  (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-03-07 15:56:32.767804"], ["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 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", "2016-03-07 15:56:32.775709"], ["updated_at", "2016-03-07 15:56:32.775709"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-07 15:56:32.778824"], ["updated_at", "2016-03-07 15:56:32.778824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:32.780518"], ["updated_at", "2016-03-07 15:56:32.780518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-07 15:56:32.781718"], ["updated_at", "2016-03-07 15:56:32.781718"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.784441"], ["updated_at", "2016-03-07 15:56:32.784441"]]  (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-03-07 15:56:32.785921"], ["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 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", "2016-03-07 15:56:32.794089"], ["updated_at", "2016-03-07 15:56:32.794089"]]  (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.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", "2016-03-07 15:56:32.797677"], ["updated_at", "2016-03-07 15:56:32.797677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2016-03-07 15:56:32.799691"], ["updated_at", "2016-03-07 15:56:32.799691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:32.800947"], ["updated_at", "2016-03-07 15:56:32.800947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.803502"], ["updated_at", "2016-03-07 15:56:32.803502"]]  (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-03-07 15:56:32.804833"], ["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", "2016-03-07 15:56:32.812099"], ["updated_at", "2016-03-07 15:56:32.812099"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 136"], ["key", "Key 136"], ["secret", "Account 136"], ["canvas_account_id", "135"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:32.815196"], ["updated_at", "2016-03-07 15:56:32.815196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:32.816869"], ["updated_at", "2016-03-07 15:56:32.816869"]]  (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", "2016-03-07 15:56:32.818507"], ["updated_at", "2016-03-07 15:56:32.818507"]]  (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-03-07 15:56:32.822297"], ["updated_at", "2016-03-07 15:56:32.822297"]]  (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-03-07 15:56:32.824170"], ["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.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-03-07 15:56:32.833194"], ["updated_at", "2016-03-07 15:56:32.833194"]]  (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", "2016-03-07 15:56:32.836975"], ["updated_at", "2016-03-07 15:56:32.836975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-07 15:56:32.839037"], ["updated_at", "2016-03-07 15:56:32.839037"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-07 15:56:32.840246"], ["updated_at", "2016-03-07 15:56:32.840246"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.843369"], ["updated_at", "2016-03-07 15:56:32.843369"]]  (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-03-07 15:56:32.845208"], ["id", 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 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", "2016-03-07 15:56:32.853925"], ["updated_at", "2016-03-07 15:56:32.853925"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:32.857238"], ["updated_at", "2016-03-07 15:56:32.857238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:32.858941"], ["updated_at", "2016-03-07 15:56:32.858941"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2016-03-07 15:56:32.860083"], ["updated_at", "2016-03-07 15:56:32.860083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.862534"], ["updated_at", "2016-03-07 15:56:32.862534"]]  (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-03-07 15:56:32.863922"], ["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 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.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 141"], ["key", "Key 141"], ["secret", "Account 141"], ["canvas_account_id", "140"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-07 15:56:32.933174"], ["updated_at", "2016-03-07 15:56:32.933174"]]  (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 142' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-07 15:56:32.938461"], ["updated_at", "2016-03-07 15:56:32.938461"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-07 15:56:32.940947"], ["updated_at", "2016-03-07 15:56:32.940947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-03-07 15:56:32.942421"], ["updated_at", "2016-03-07 15:56:32.942421"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-07 15:56:32.945548"], ["updated_at", "2016-03-07 15:56:32.945548"]]  (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-03-07 15:56:32.947214"], ["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", "2016-03-07 15:56:32.950295"], ["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 Rendered text template (0.0ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.0ms)  (0.1ms) rollback transaction  (0.0ms) begin transaction Processing by CoalescingPanda::LtiController#lti_config as HTML Rendered text template (0.0ms) Completed 200 OK in 0ms (Views: 0.2ms | 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) SAVEPOINT active_record_1 CoalescingPanda::LtiAccount Exists (0.3ms) 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.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-03-08 14:48:38.084800"], ["updated_at", "2016-03-08 14:48:38.084800"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-03-08 14:48:38.116701"], ["updated_at", "2016-03-08 14:48:38.116701"]]  (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.3ms) 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-03-08 15:48:38.162744"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-08 14:48:38.164190"], ["updated_at", "2016-03-08 14:48:38.164190"]]  (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.4ms) Completed 200 OK in 54ms (Views: 10.4ms | ActiveRecord: 0.9ms) CoalescingPanda::CanvasApiAuth Load (0.2ms) 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.8ms | 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.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 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", "2016-03-08 14:48:38.206795"], ["updated_at", "2016-03-08 14:48:38.206795"]]  (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-03-08 14:48:38.268957"], ["updated_at", "2016-03-08 14:48:38.268957"]]  (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", "2016-03-08 14:48:38.271804"], ["updated_at", "2016-03-08 14:48:38.271804"]]  (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", "2016-03-08 14:48:38.275157"], ["updated_at", "2016-03-08 14:48:38.275157"]]  (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 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-03-08 14:48:38.308289"], ["updated_at", "2016-03-08 14:48:38.308289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:48:38.311797"], ["updated_at", "2016-03-08 14:48:38.311797"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:38.313656"], ["updated_at", "2016-03-08 14:48:38.313656"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-03-08 14:48:38.315231"], ["updated_at", "2016-03-08 14:48:38.315231"]]  (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.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 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.321880"], ["updated_at", "2016-03-08 14:48:38.321880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:38.325284"], ["updated_at", "2016-03-08 14:48:38.325284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:38.327094"], ["updated_at", "2016-03-08 14:48:38.327094"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-08 14:48:38.328712"], ["updated_at", "2016-03-08 14:48:38.328712"]]  (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.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 8"], ["key", "Key 8"], ["secret", "Account 8"], ["canvas_account_id", "8"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.344503"], ["updated_at", "2016-03-08 14:48:38.344503"]]  (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.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", "2016-03-08 14:48:38.348873"], ["updated_at", "2016-03-08 14:48:38.348873"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:38.351113"], ["updated_at", "2016-03-08 14:48:38.351113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-03-08 14:48:38.352401"], ["updated_at", "2016-03-08 14:48:38.352401"]]  (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 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", "2016-03-08 14:48:38.359343"], ["updated_at", "2016-03-08 14:48:38.359343"]]  (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.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 11"], ["key", "Key 11"], ["secret", "Account 11"], ["canvas_account_id", "11"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.362727"], ["updated_at", "2016-03-08 14:48:38.362727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:38.365244"], ["updated_at", "2016-03-08 14:48:38.365244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-03-08 14:48:38.366600"], ["updated_at", "2016-03-08 14:48:38.366600"]]  (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", "2016-03-08 14:48:38.371814"], ["updated_at", "2016-03-08 14:48:38.371814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:38.374621"], ["updated_at", "2016-03-08 14:48:38.374621"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:38.376291"], ["updated_at", "2016-03-08 14:48:38.376291"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-03-08 14:48:38.377359"], ["updated_at", "2016-03-08 14:48:38.377359"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", "2016-03-08 14:48:38.378914"], ["updated_at", "2016-03-08 14:48:38.378914"]]  (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-03-08 14:48:38.385767"], ["updated_at", "2016-03-08 14:48:38.385767"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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", "2016-03-08 14:48:38.391258"], ["updated_at", "2016-03-08 14:48:38.391258"]]  (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 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.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 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.395310"], ["updated_at", "2016-03-08 14:48:38.395310"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:38.397545"], ["updated_at", "2016-03-08 14:48:38.397545"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-03-08 14:48:38.398847"], ["updated_at", "2016-03-08 14:48:38.398847"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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.2ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("user_id", "created_at", "updated_at") VALUES (?, ?, ?) [["user_id", "a"], ["created_at", "2016-03-08 14:48:38.405337"], ["updated_at", "2016-03-08 14:48:38.405337"]]  (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.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  (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", "2016-03-09 14:48:38.418846"], ["created_at", "2016-03-08 14:48:38.421253"], ["updated_at", "2016-03-08 14:48:38.421253"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (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-03-08 14:48:38.430165"], ["updated_at", "2016-03-08 14:48:38.430165"]]  (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-03-08 14:48:38.432148"], ["updated_at", "2016-03-08 14:48:38.432148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "coalescing_panda_canvas_batches" ("status", "created_at", "updated_at") VALUES (?, ?, ?) [["status", "Pending"], ["created_at", "2016-03-08 14:48:38.433606"], ["updated_at", "2016-03-08 14:48:38.433606"]]  (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.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.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 16' 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 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.446693"], ["updated_at", "2016-03-08 14:48:38.446693"]]  (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.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 17"], ["key", "Key 17"], ["secret", "Account 17"], ["canvas_account_id", "17"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.451995"], ["updated_at", "2016-03-08 14:48:38.451995"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-08 14:48:38.454389"], ["updated_at", "2016-03-08 14:48:38.454389"]]  (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 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", "2016-03-08 14:48:38.460657"], ["updated_at", "2016-03-08 14:48:38.460657"]]  (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-03-08 14:48:38.464493"], ["updated_at", "2016-03-08 14:48:38.464493"]]  (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-03-08 14:48:38.467276"], ["updated_at", "2016-03-08 14:48:38.467276"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.472648"], ["updated_at", "2016-03-08 14:48:38.472648"]]  (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.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", "2016-03-08 14:48:38.476402"], ["updated_at", "2016-03-08 14:48:38.476402"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2016-03-08 14:48:38.478942"], ["updated_at", "2016-03-08 14:48:38.478942"]]  (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", "2016-03-08 14:48:38.480609"], ["updated_at", "2016-03-08 14:48:38.480609"]]  (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", "2016-03-08 14:48:38.533305"], ["updated_at", "2016-03-08 14:48:38.533305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.535042"], ["updated_at", "2016-03-08 14:48:38.535042"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-08 14:48:38.536190"], ["updated_at", "2016-03-08 14:48:38.536190"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-08 14:48:38.540358"], ["updated_at", "2016-03-08 14:48:38.540358"]]  (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", "2016-03-08 14:48:38.541980"], ["updated_at", "2016-03-08 14:48:38.541980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:38.544642"], ["updated_at", "2016-03-08 14:48:38.544642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-08 14:48:38.546758"], ["updated_at", "2016-03-08 14:48:38.546758"]]  (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", "2016-03-08 14:48:38.550054"], ["updated_at", "2016-03-08 14:48:38.550054"]]  (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", "2016-03-08 14:48:38.552446"], ["updated_at", "2016-03-08 14:48:38.552446"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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", "2016-03-08 14:48:38.557840"], ["updated_at", "2016-03-08 14:48:38.557840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:38.561088"], ["updated_at", "2016-03-08 14:48:38.561088"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:38.562946"], ["updated_at", "2016-03-08 14:48:38.562946"]]  (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.0ms) SAVEPOINT 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", "2016-03-08 14:48:38.575862"], ["updated_at", "2016-03-08 14:48:38.575862"]]  (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-03-08 14:48:38.578909"], ["updated_at", "2016-03-08 14:48:38.578909"]]  (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", "2016-03-08 14:48:38.588240"], ["updated_at", "2016-03-08 14:48:38.588240"]]  (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-03-08 14:48:38.593575"], ["updated_at", "2016-03-08 14:48:38.593575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.596152"], ["updated_at", "2016-03-08 14:48:38.596152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:38.597940"], ["updated_at", "2016-03-08 14:48:38.597940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-03-08 14:48:38.600300"], ["updated_at", "2016-03-08 14:48:38.600300"]]  (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", "2016-03-08 14:48:38.607727"], ["updated_at", "2016-03-08 14:48:38.607727"]]  (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", "2016-03-08 14:48:38.610133"], ["updated_at", "2016-03-08 14:48:38.610133"]]  (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", "2016-03-08 14:48:38.613020"], ["updated_at", "2016-03-08 14:48:38.613020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:38.615998"], ["updated_at", "2016-03-08 14:48:38.615998"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.617507"], ["updated_at", "2016-03-08 14:48:38.617507"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-08 14:48:38.618638"], ["updated_at", "2016-03-08 14:48:38.618638"]]  (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-03-08 14:48:38.619746"], ["updated_at", "2016-03-08 14:48:38.619746"]]  (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", "2016-03-08 14:48:38.625900"], ["updated_at", "2016-03-08 14:48:38.625900"]]  (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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-03-08 14:48:38.628391"], ["updated_at", "2016-03-08 14:48:38.628391"]]  (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-03-08 14:48:38.631796"], ["updated_at", "2016-03-08 14:48:38.631796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:48:38.634792"], ["updated_at", "2016-03-08 14:48:38.634792"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.636382"], ["updated_at", "2016-03-08 14:48:38.636382"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:38.637692"], ["updated_at", "2016-03-08 14:48:38.637692"]]  (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-03-08 14:48:38.638902"], ["updated_at", "2016-03-08 14:48:38.638902"]]  (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 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.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 37"], ["key", "Key 37"], ["secret", "Account 37"], ["canvas_account_id", "37"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.645153"], ["updated_at", "2016-03-08 14:48:38.645153"]]  (0.1ms) 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-03-08 14:48:38.648670"], ["updated_at", "2016-03-08 14:48:38.648670"]]  (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", "2016-03-08 14:48:38.651665"], ["updated_at", "2016-03-08 14:48:38.651665"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:48:38.654393"], ["updated_at", "2016-03-08 14:48:38.654393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.655885"], ["updated_at", "2016-03-08 14:48:38.655885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-08 14:48:38.656977"], ["updated_at", "2016-03-08 14:48:38.656977"]]  (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-03-08 14:48:38.658047"], ["updated_at", "2016-03-08 14:48:38.658047"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-03-08 14:48:38.659607"], ["updated_at", "2016-03-08 14:48:38.659607"]]  (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", "2016-03-08 14:48:38.662166"], ["updated_at", "2016-03-08 14:48:38.662166"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 40' 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 40"], ["key", "Key 40"], ["secret", "Account 40"], ["canvas_account_id", "40"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.668045"], ["updated_at", "2016-03-08 14:48:38.668045"]]  (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-03-08 14:48:38.670392"], ["updated_at", "2016-03-08 14:48:38.670392"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:48:38.673289"], ["updated_at", "2016-03-08 14:48:38.673289"]]  (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.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-03-08 14:48:38.676478"], ["updated_at", "2016-03-08 14:48:38.676478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.678563"], ["updated_at", "2016-03-08 14:48:38.678563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:38.679935"], ["updated_at", "2016-03-08 14:48:38.679935"]]  (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-03-08 14:48:38.681259"], ["updated_at", "2016-03-08 14:48:38.681259"]]  (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-03-08 14:48:38.682977"], ["updated_at", "2016-03-08 14:48:38.682977"]]  (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-03-08 14:48:38.684745"], ["updated_at", "2016-03-08 14:48:38.684745"]]  (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 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-03-08 14:48:38.690577"], ["updated_at", "2016-03-08 14:48:38.690577"]]  (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", "2016-03-08 14:48:38.692685"], ["updated_at", "2016-03-08 14:48:38.692685"]]  (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 44' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-08 14:48:38.697384"], ["updated_at", "2016-03-08 14:48:38.697384"]]  (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", "2016-03-08 14:48:38.701576"], ["updated_at", "2016-03-08 14:48:38.701576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.703488"], ["updated_at", "2016-03-08 14:48:38.703488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-08 14:48:38.704774"], ["updated_at", "2016-03-08 14:48:38.704774"]]  (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-03-08 14:48:38.705954"], ["updated_at", "2016-03-08 14:48:38.705954"]]  (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.0ms) SAVEPOINT 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", "2016-03-08 14:48:38.718683"], ["updated_at", "2016-03-08 14:48:38.718683"]]  (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", "2016-03-08 14:48:38.722485"], ["updated_at", "2016-03-08 14:48:38.722485"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-08 14:48:38.724819"], ["updated_at", "2016-03-08 14:48:38.724819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:38.726095"], ["updated_at", "2016-03-08 14:48:38.726095"]]  (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 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", "2016-03-08 14:48:38.733324"], ["updated_at", "2016-03-08 14:48:38.733324"]]  (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.1ms) 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", "2016-03-08 14:48:38.736821"], ["updated_at", "2016-03-08 14:48:38.736821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-08 14:48:38.738736"], ["updated_at", "2016-03-08 14:48:38.738736"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:38.739926"], ["updated_at", "2016-03-08 14:48:38.739926"]]  (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.1ms) 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", "2016-03-08 14:48:38.745267"], ["updated_at", "2016-03-08 14:48:38.745267"]]  (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 52' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 52' 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 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.749489"], ["updated_at", "2016-03-08 14:48:38.749489"]]  (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", "22"], ["created_at", "2016-03-08 14:48:38.752020"], ["updated_at", "2016-03-08 14:48:38.752020"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:38.753311"], ["updated_at", "2016-03-08 14:48:38.753311"]]  (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", "2016-03-08 14:48:38.755007"], ["updated_at", "2016-03-08 14:48:38.755007"]]  (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-03-08 14:48:38.756506"], ["updated_at", "2016-03-08 14:48:38.756506"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-08 14:48:38.762532"], ["updated_at", "2016-03-08 14:48:38.762532"]]  (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 54' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-08 14:48:38.768046"], ["updated_at", "2016-03-08 14:48:38.768046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-03-08 14:48:38.770711"], ["updated_at", "2016-03-08 14:48:38.770711"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:38.771940"], ["updated_at", "2016-03-08 14:48:38.771940"]]  (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", "2016-03-08 14:48:38.840639"], ["updated_at", "2016-03-08 14:48:38.840639"]]  (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-03-08 14:48:38.843193"], ["updated_at", "2016-03-08 14:48:38.843193"]]  (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", "2016-03-08 14:48:38.847758"], ["updated_at", "2016-03-08 14:48:38.847758"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-08 14:48:38.850686"], ["updated_at", "2016-03-08 14:48:38.850686"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.852171"], ["updated_at", "2016-03-08 14:48:38.852171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:38.853325"], ["updated_at", "2016-03-08 14:48:38.853325"]]  (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", "2016-03-08 14:48:38.854463"], ["updated_at", "2016-03-08 14:48:38.854463"]]  (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", "2016-03-08 14:48:38.860791"], ["updated_at", "2016-03-08 14:48:38.860791"]]  (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-03-08 14:48:38.862857"], ["updated_at", "2016-03-08 14:48:38.862857"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:48:38.865605"], ["updated_at", "2016-03-08 14:48:38.865605"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:48:38.868181"], ["updated_at", "2016-03-08 14:48:38.868181"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.869779"], ["updated_at", "2016-03-08 14:48:38.869779"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-08 14:48:38.870921"], ["updated_at", "2016-03-08 14:48:38.870921"]]  (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-03-08 14:48:38.872068"], ["updated_at", "2016-03-08 14:48:38.872068"]]  (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.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-03-08 14:48:38.877761"], ["updated_at", "2016-03-08 14:48:38.877761"]]  (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", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2016-03-08 14:48:38.880611"], ["updated_at", "2016-03-08 14:48:38.880611"]]  (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-03-08 14:48:38.884080"], ["updated_at", "2016-03-08 14:48:38.884080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:48:38.887168"], ["updated_at", "2016-03-08 14:48:38.887168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.888727"], ["updated_at", "2016-03-08 14:48:38.888727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:38.889902"], ["updated_at", "2016-03-08 14:48:38.889902"]]  (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-03-08 14:48:38.891071"], ["updated_at", "2016-03-08 14:48:38.891071"]]  (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 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.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 64"], ["key", "Key 64"], ["secret", "Account 64"], ["canvas_account_id", "63"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.896783"], ["updated_at", "2016-03-08 14:48:38.896783"]]  (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-03-08 14:48:38.899640"], ["updated_at", "2016-03-08 14:48:38.899640"]]  (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 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-03-08 14:48:38.902537"], ["updated_at", "2016-03-08 14:48:38.902537"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:48:38.905551"], ["updated_at", "2016-03-08 14:48:38.905551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.907017"], ["updated_at", "2016-03-08 14:48:38.907017"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-08 14:48:38.908124"], ["updated_at", "2016-03-08 14:48:38.908124"]]  (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-03-08 14:48:38.909272"], ["updated_at", "2016-03-08 14:48:38.909272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_assignment_id", 1], ["canvas_submission_id", "1"], ["created_at", "2016-03-08 14:48:38.910921"], ["updated_at", "2016-03-08 14:48:38.910921"]]  (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", "2016-03-08 14:48:38.913175"], ["updated_at", "2016-03-08 14:48:38.913175"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 67"], ["key", "Key 67"], ["secret", "Account 67"], ["canvas_account_id", "66"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:38.918930"], ["updated_at", "2016-03-08 14:48:38.918930"]]  (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-03-08 14:48:38.921101"], ["updated_at", "2016-03-08 14:48:38.921101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:48:38.923968"], ["updated_at", "2016-03-08 14:48:38.923968"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:38.926863"], ["updated_at", "2016-03-08 14:48:38.926863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.928429"], ["updated_at", "2016-03-08 14:48:38.928429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:38.929590"], ["updated_at", "2016-03-08 14:48:38.929590"]]  (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-03-08 14:48:38.931052"], ["updated_at", "2016-03-08 14:48:38.931052"]]  (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", "1"], ["created_at", "2016-03-08 14:48:38.933534"], ["updated_at", "2016-03-08 14:48:38.933534"]]  (0.1ms) 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-03-08 14:48:38.935936"], ["updated_at", "2016-03-08 14:48:38.935936"]]  (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.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-03-08 14:48:38.941176"], ["updated_at", "2016-03-08 14:48:38.941176"]]  (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", "test13@test.com"], ["name", "Factory User 13"], ["canvas_user_id", "13"], ["created_at", "2016-03-08 14:48:38.943280"], ["updated_at", "2016-03-08 14:48:38.943280"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:48:38.945970"], ["updated_at", "2016-03-08 14:48:38.945970"]]  (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 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.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-03-08 14:48:38.949215"], ["updated_at", "2016-03-08 14:48:38.949215"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:48:38.951212"], ["updated_at", "2016-03-08 14:48:38.951212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-08 14:48:38.952665"], ["updated_at", "2016-03-08 14:48:38.952665"]]  (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-03-08 14:48:38.954122"], ["updated_at", "2016-03-08 14:48:38.954122"]]  (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.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.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-03-08 14:48:38.960876"], ["updated_at", "2016-03-08 14:48:38.960876"]]  (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 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-03-08 14:48:38.967510"], ["updated_at", "2016-03-08 14:48:38.967510"]]  (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-03-08 14:48:38.969745"], ["updated_at", "2016-03-08 14:48:38.969745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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", "2016-03-08 14:48:38.971604"], ["updated_at", "2016-03-08 14:48:38.971604"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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.0ms) SAVEPOINT 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", "2016-03-08 14:48:38.977698"], ["updated_at", "2016-03-08 14:48:38.977698"]]  (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", "2016-03-08 14:48:38.984093"], ["updated_at", "2016-03-08 14:48:38.984093"]]  (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", "2016-03-08 14:48:38.989295"], ["updated_at", "2016-03-08 14:48:38.989295"]]  (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", "2016-03-08 14:48:38.992178"], ["updated_at", "2016-03-08 14:48:38.992178"]]  (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-03-08 14:48:38.994832"], ["updated_at", "2016-03-08 14:48:38.994832"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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", "2016-03-08 14:48:39.000712"], ["updated_at", "2016-03-08 14:48:39.000712"]]  (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-03-08 14:48:39.009942"], ["updated_at", "2016-03-08 14:48:39.009942"]]  (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", "2016-03-08 14:48:39.039391"], ["updated_at", "2016-03-08 14:48:39.039391"]]  (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-03-08 14:48:39.041540"], ["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.5ms) 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.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-03-08 14:48:39.048860"], ["updated_at", "2016-03-08 14:48:39.048860"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-08 14:48:39.052381"], ["updated_at", "2016-03-08 14:48:39.052381"]]  (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-03-08 14:48:39.053892"], ["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 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.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 81"], ["key", "Key 81"], ["secret", "Account 81"], ["canvas_account_id", "80"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:39.060389"], ["updated_at", "2016-03-08 14:48:39.060389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-08 14:48:39.064729"], ["updated_at", "2016-03-08 14:48:39.064729"]]  (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-03-08 14:48:39.066707"], ["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", "2016-03-08 14:48:39.134043"], ["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", "2016-03-08 14:48:39.138669"], ["updated_at", "2016-03-08 14:48:39.138669"]]  (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-03-08 14:48:39.140451"], ["updated_at", "2016-03-08 14:48:39.140451"]]  (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", "2016-03-08 14:48:39.141992"], ["updated_at", "2016-03-08 14:48:39.141992"]]  (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-03-08 14:48:39.144023"], ["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-03-08 14:48:39.145181"], ["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.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", "2016-03-08 14:48:39.151488"], ["updated_at", "2016-03-08 14:48:39.151488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-08 14:48:39.155161"], ["updated_at", "2016-03-08 14:48:39.155161"]]  (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-03-08 14:48:39.156667"], ["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-03-08 14:48:39.160405"], ["updated_at", "2016-03-08 14:48:39.160405"]]  (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", "2016-03-08 14:48:39.162539"], ["updated_at", "2016-03-08 14:48:39.162539"]]  (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.1ms) begin transaction CoalescingPanda::User Load (0.2ms) 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.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 83' 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 83"], ["key", "Key 83"], ["secret", "Account 83"], ["canvas_account_id", "82"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:39.170717"], ["updated_at", "2016-03-08 14:48:39.170717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-08 14:48:39.174622"], ["updated_at", "2016-03-08 14:48:39.174622"]]  (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-03-08 14:48:39.177130"], ["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", "2016-03-08 14:48:39.179806"], ["updated_at", "2016-03-08 14:48:39.179806"]]  (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-03-08 14:48:39.181829"], ["updated_at", "2016-03-08 14:48:39.181829"]]  (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-03-08 14:48:39.183879"], ["updated_at", "2016-03-08 14:48:39.183879"]]  (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.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-03-08 14:48:39.190581"], ["updated_at", "2016-03-08 14:48:39.190581"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-08 14:48:39.194797"], ["updated_at", "2016-03-08 14:48:39.194797"]]  (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-03-08 14:48:39.196493"], ["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 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.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-03-08 14:48:39.203658"], ["updated_at", "2016-03-08 14:48:39.203658"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-08 14:48:39.207948"], ["updated_at", "2016-03-08 14:48:39.207948"]]  (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-03-08 14:48:39.209766"], ["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.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", "2016-03-08 14:48:39.217317"], ["updated_at", "2016-03-08 14:48:39.217317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-08 14:48:39.220611"], ["updated_at", "2016-03-08 14:48:39.220611"]]  (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-03-08 14:48:39.222101"], ["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", "2016-03-08 14:48:39.224707"], ["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.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 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:39.233877"], ["updated_at", "2016-03-08 14:48:39.233877"]]  (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 88' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 88' 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 88"], ["key", "Key 88"], ["secret", "Account 88"], ["canvas_account_id", "87"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:39.240057"], ["updated_at", "2016-03-08 14:48:39.240057"]]  (0.2ms) 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", "31"], ["created_at", "2016-03-08 14:48:39.244293"], ["updated_at", "2016-03-08 14:48:39.244293"]]  (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", "26"], ["created_at", "2016-03-08 14:48:39.247110"], ["updated_at", "2016-03-08 14:48:39.247110"]]  (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.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-03-08 14:48:39.252744"], ["updated_at", "2016-03-08 14:48:39.252744"]]  (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-03-08 14:48:39.255939"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.2ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" ORDER BY created_at ASC LIMIT 1  (1.0ms) 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 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-03-08 14:48:39.269446"], ["updated_at", "2016-03-08 14:48:39.269446"]]  (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.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", "2016-03-08 14:48:39.275802"], ["updated_at", "2016-03-08 14:48:39.275802"]]  (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", "32"], ["created_at", "2016-03-08 14:48:39.278272"], ["updated_at", "2016-03-08 14:48:39.278272"]]  (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", "27"], ["created_at", "2016-03-08 14:48:39.279833"], ["updated_at", "2016-03-08 14:48:39.279833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.282990"], ["updated_at", "2016-03-08 14:48:39.282990"]]  (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-03-08 14:48:39.284616"], ["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 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", "2016-03-08 14:48:39.292692"], ["updated_at", "2016-03-08 14:48:39.292692"]]  (0.2ms) 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 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", "2016-03-08 14:48:39.299631"], ["updated_at", "2016-03-08 14:48:39.299631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "33"], ["created_at", "2016-03-08 14:48:39.302200"], ["updated_at", "2016-03-08 14:48:39.302200"]]  (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", "2016-03-08 14:48:39.303659"], ["updated_at", "2016-03-08 14:48:39.303659"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.306899"], ["updated_at", "2016-03-08 14:48:39.306899"]]  (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", "2016-03-08 14:48:39.308145"], ["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 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-03-08 14:48:39.314739"], ["updated_at", "2016-03-08 14:48:39.314739"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:48:39.317649"], ["updated_at", "2016-03-08 14:48:39.317649"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:39.319580"], ["updated_at", "2016-03-08 14:48:39.319580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2016-03-08 14:48:39.321238"], ["updated_at", "2016-03-08 14:48:39.321238"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.323929"], ["updated_at", "2016-03-08 14:48:39.323929"]]  (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-03-08 14:48:39.325432"], ["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 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-03-08 14:48:39.335019"], ["updated_at", "2016-03-08 14:48:39.335019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:39.338154"], ["updated_at", "2016-03-08 14:48:39.338154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-03-08 14:48:39.339951"], ["updated_at", "2016-03-08 14:48:39.339951"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:39.341016"], ["updated_at", "2016-03-08 14:48:39.341016"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.343284"], ["updated_at", "2016-03-08 14:48:39.343284"]]  (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-03-08 14:48:39.344949"], ["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-03-08 14:48:39.354095"], ["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-03-08 14:48:39.359044"], ["updated_at", "2016-03-08 14:48:39.359044"]]  (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-03-08 14:48:39.361772"], ["id", 1]]  (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", "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-03-08 14:48:39.365829"], ["updated_at", "2016-03-08 14:48:39.365829"]]  (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.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-03-08 14:48:39.368270"], ["updated_at", "2016-03-08 14:48:39.368270"]]  (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-03-08 14:48:39.370404"], ["updated_at", "2016-03-08 14:48:39.370404"]]  (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", "2016-03-08 14:48:39.438569"], ["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.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.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) 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-03-08 14:48:39.456486"], ["id", 1]]  (0.1ms) 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.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-03-08 14:48:39.462271"], ["updated_at", "2016-03-08 14:48:39.462271"]]  (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-03-08 14:48:39.465582"], ["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.5ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_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", "2016-03-08 14:48:39.491638"], ["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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 75.0], ["updated_at", "2016-03-08 14:48:39.494526"], ["id", 1]]  (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.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.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", "2016-03-08 14:48:39.509082"], ["updated_at", "2016-03-08 14:48:39.509082"]]  (0.1ms) 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.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.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", "2016-03-08 14:48:39.513701"], ["updated_at", "2016-03-08 14:48:39.513701"]]  (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", "2016-03-08 14:48:39.516059"], ["id", 1]]  (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" = ? [["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-03-08 14:48:39.529780"], ["updated_at", "2016-03-08 14:48:39.529780"]]  (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.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"]]  (0.1ms) 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-03-08 14:48:39.534523"], ["updated_at", "2016-03-08 14:48:39.534523"]]  (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 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-03-08 14:48:39.542516"], ["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", "Completed"], ["updated_at", "2016-03-08 14:48:39.543860"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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", "2016-03-08 14:48:39.551727"], ["updated_at", "2016-03-08 14:48:39.551727"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:39.554939"], ["updated_at", "2016-03-08 14:48:39.554939"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:39.556748"], ["updated_at", "2016-03-08 14:48:39.556748"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-03-08 14:48:39.557887"], ["updated_at", "2016-03-08 14:48:39.557887"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.560278"], ["updated_at", "2016-03-08 14:48:39.560278"]]  (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-03-08 14:48:39.561603"], ["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-03-08 14:48:39.563841"], ["updated_at", "2016-03-08 14:48:39.563841"]]  (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", "2016-03-08 14:48:39.572235"], ["updated_at", "2016-03-08 14:48:39.572235"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:39.575260"], ["updated_at", "2016-03-08 14:48:39.575260"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:39.577318"], ["updated_at", "2016-03-08 14:48:39.577318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-08 14:48:39.578756"], ["updated_at", "2016-03-08 14:48:39.578756"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.581632"], ["updated_at", "2016-03-08 14:48:39.581632"]]  (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-03-08 14:48:39.583120"], ["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", "2016-03-08 14:48:39.585252"], ["updated_at", "2016-03-08 14:48:39.585252"]]  (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-03-08 14:48:39.587182"], ["updated_at", "2016-03-08 14:48:39.587182"]]  (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", "2016-03-08 14:48:39.589089"], ["updated_at", "2016-03-08 14:48:39.589089"]]  (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.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.2ms) INSERT INTO "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-03-08 14:48:39.597250"], ["updated_at", "2016-03-08 14:48:39.597250"]]  (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-03-08 14:48:39.600457"], ["updated_at", "2016-03-08 14:48:39.600457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:39.602577"], ["updated_at", "2016-03-08 14:48:39.602577"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-08 14:48:39.603805"], ["updated_at", "2016-03-08 14:48:39.603805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.606293"], ["updated_at", "2016-03-08 14:48:39.606293"]]  (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-03-08 14:48:39.607648"], ["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-03-08 14:48:39.609744"], ["updated_at", "2016-03-08 14:48:39.609744"]]  (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-03-08 14:48:39.611768"], ["updated_at", "2016-03-08 14:48:39.611768"]]  (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", "2016-03-08 14:48:39.668366"], ["updated_at", "2016-03-08 14:48:39.668366"]]  (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-03-08 14:48:39.670588"], ["updated_at", "2016-03-08 14:48:39.670588"]]  (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.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.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 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.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 103"], ["key", "Key 103"], ["secret", "Account 103"], ["canvas_account_id", "102"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:39.692297"], ["updated_at", "2016-03-08 14:48:39.692297"]]  (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 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", "2016-03-08 14:48:39.697127"], ["updated_at", "2016-03-08 14:48:39.697127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-08 14:48:39.699807"], ["updated_at", "2016-03-08 14:48:39.699807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:39.701448"], ["updated_at", "2016-03-08 14:48:39.701448"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.704679"], ["updated_at", "2016-03-08 14:48:39.704679"]]  (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-03-08 14:48:39.706391"], ["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", "2016-03-08 14:48:39.712699"], ["updated_at", "2016-03-08 14:48:39.712699"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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", "2016-03-08 14:48:39.722563"], ["updated_at", "2016-03-08 14:48:39.722563"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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", "2016-03-08 14:48:39.726046"], ["updated_at", "2016-03-08 14:48:39.726046"]]  (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", "40"], ["created_at", "2016-03-08 14:48:39.729559"], ["updated_at", "2016-03-08 14:48:39.729559"]]  (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", "35"], ["created_at", "2016-03-08 14:48:39.731917"], ["updated_at", "2016-03-08 14:48:39.731917"]]  (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-03-08 14:48:39.735436"], ["updated_at", "2016-03-08 14:48:39.735436"]]  (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-03-08 14:48:39.737164"], ["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-03-08 14:48:39.740096"], ["updated_at", "2016-03-08 14:48:39.740096"]]  (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.1ms) 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.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-03-08 14:48:39.761084"], ["updated_at", "2016-03-08 14:48:39.761084"]]  (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 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.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", "2016-03-08 14:48:39.765721"], ["updated_at", "2016-03-08 14:48:39.765721"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-08 14:48:39.768101"], ["updated_at", "2016-03-08 14:48:39.768101"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:39.769504"], ["updated_at", "2016-03-08 14:48:39.769504"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.772184"], ["updated_at", "2016-03-08 14:48:39.772184"]]  (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-03-08 14:48:39.773562"], ["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-03-08 14:48:39.775551"], ["updated_at", "2016-03-08 14:48:39.775551"]]  (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.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-03-08 14:48:39.782666"], ["updated_at", "2016-03-08 14:48:39.782666"]]  (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", "2016-03-08 14:48:39.785787"], ["updated_at", "2016-03-08 14:48:39.785787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "42"], ["created_at", "2016-03-08 14:48:39.787755"], ["updated_at", "2016-03-08 14:48:39.787755"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:39.789004"], ["updated_at", "2016-03-08 14:48:39.789004"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.791649"], ["updated_at", "2016-03-08 14:48:39.791649"]]  (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-03-08 14:48:39.793089"], ["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.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-03-08 14:48:39.795799"], ["updated_at", "2016-03-08 14:48:39.795799"]]  (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-03-08 14:48:39.799024"], ["updated_at", "2016-03-08 14:48:39.799024"]]  (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-03-08 14:48:39.800767"], ["updated_at", "2016-03-08 14:48:39.800767"]]  (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", "2016-03-08 14:48:39.802571"], ["updated_at", "2016-03-08 14:48:39.802571"]]  (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.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::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.3ms) 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.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.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.2ms) 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-03-08 14:48:39.833718"], ["updated_at", "2016-03-08 14:48:39.833718"]]  (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-03-08 14:48:39.837675"], ["updated_at", "2016-03-08 14:48:39.837675"]]  (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", "2016-03-08 14:48:39.840833"], ["updated_at", "2016-03-08 14:48:39.840833"]]  (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", "2016-03-08 14:48:39.844029"], ["updated_at", "2016-03-08 14:48:39.844029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (1.0ms) 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", "2016-03-08 14:48:39.852191"], ["updated_at", "2016-03-08 14:48:39.852191"]]  (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-03-08 14:48:39.855311"], ["updated_at", "2016-03-08 14:48:39.855311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-03-08 14:48:39.857274"], ["updated_at", "2016-03-08 14:48:39.857274"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:39.858380"], ["updated_at", "2016-03-08 14:48:39.858380"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.860989"], ["updated_at", "2016-03-08 14:48:39.860989"]]  (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-03-08 14:48:39.862434"], ["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-03-08 14:48:39.864644"], ["updated_at", "2016-03-08 14:48:39.864644"]]  (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.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.1ms) 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-03-08 14:48:39.926571"], ["updated_at", "2016-03-08 14:48:39.926571"]]  (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-03-08 14:48:39.929721"], ["updated_at", "2016-03-08 14:48:39.929721"]]  (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.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.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", "2016-03-08 14:48:39.939464"], ["updated_at", "2016-03-08 14:48:39.939464"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:39.942443"], ["updated_at", "2016-03-08 14:48:39.942443"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2016-03-08 14:48:39.944216"], ["updated_at", "2016-03-08 14:48:39.944216"]]  (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", "2016-03-08 14:48:39.945543"], ["updated_at", "2016-03-08 14:48:39.945543"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.948089"], ["updated_at", "2016-03-08 14:48:39.948089"]]  (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-03-08 14:48:39.949517"], ["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-03-08 14:48:39.951592"], ["updated_at", "2016-03-08 14:48:39.951592"]]  (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-03-08 14:48:39.953628"], ["updated_at", "2016-03-08 14:48:39.953628"]]  (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-03-08 14:48:39.955282"], ["updated_at", "2016-03-08 14:48:39.955282"]]  (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-03-08 14:48:39.956779"], ["updated_at", "2016-03-08 14:48:39.956779"]]  (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::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-03-08 14:48:39.975461"], ["updated_at", "2016-03-08 14:48:39.975461"]]  (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-03-08 14:48:39.977710"], ["updated_at", "2016-03-08 14:48:39.977710"]]  (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.0ms) 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", "2016-03-08 14:48:39.987618"], ["updated_at", "2016-03-08 14:48:39.987618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:39.990690"], ["updated_at", "2016-03-08 14:48:39.990690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:39.992573"], ["updated_at", "2016-03-08 14:48:39.992573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-03-08 14:48:39.993744"], ["updated_at", "2016-03-08 14:48:39.993744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:39.996772"], ["updated_at", "2016-03-08 14:48:39.996772"]]  (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-03-08 14:48:39.998224"], ["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-03-08 14:48:40.002291"], ["updated_at", "2016-03-08 14:48:40.002291"]]  (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-03-08 14:48:40.005604"], ["updated_at", "2016-03-08 14:48:40.005604"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (0.9ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.2ms) 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 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", "2016-03-08 14:48:40.015787"], ["updated_at", "2016-03-08 14:48:40.015787"]]  (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", "2016-03-08 14:48:40.019334"], ["updated_at", "2016-03-08 14:48:40.019334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:40.021159"], ["updated_at", "2016-03-08 14:48:40.021159"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-08 14:48:40.022349"], ["updated_at", "2016-03-08 14:48:40.022349"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.024758"], ["updated_at", "2016-03-08 14:48:40.024758"]]  (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-03-08 14:48:40.026069"], ["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-03-08 14:48:40.028511"], ["updated_at", "2016-03-08 14:48:40.028511"]]  (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-03-08 14:48:40.031084"], ["updated_at", "2016-03-08 14:48:40.031084"]]  (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-03-08 14:48:40.032975"], ["updated_at", "2016-03-08 14:48:40.032975"]]  (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-03-08 14:48:40.034569"], ["updated_at", "2016-03-08 14:48:40.034569"]]  (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.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.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.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::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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.0ms) UPDATE "coalescing_panda_canvas_batches" SET "options" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["options", "---\n- :enrollments\n"], ["updated_at", "2016-03-08 14:48:40.051673"], ["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.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 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-03-08 14:48:40.068767"], ["updated_at", "2016-03-08 14:48:40.068767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:40.071882"], ["updated_at", "2016-03-08 14:48:40.071882"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-08 14:48:40.073785"], ["updated_at", "2016-03-08 14:48:40.073785"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:40.074943"], ["updated_at", "2016-03-08 14:48:40.074943"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.077518"], ["updated_at", "2016-03-08 14:48:40.077518"]]  (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-03-08 14:48:40.079099"], ["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-03-08 14:48:40.081417"], ["updated_at", "2016-03-08 14:48:40.081417"]]  (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.1ms) 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-03-08 14:48:40.084254"], ["updated_at", "2016-03-08 14:48:40.084254"]]  (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 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-03-08 14:48:40.087114"], ["updated_at", "2016-03-08 14:48:40.087114"]]  (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-03-08 14:48:40.089341"], ["updated_at", "2016-03-08 14:48:40.089341"]]  (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.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", "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.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- :enrollments\n- :soft_delete\n"], ["updated_at", "2016-03-08 14:48:40.110156"], ["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.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.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"]]  (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 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", "2016-03-08 14:48:40.130927"], ["updated_at", "2016-03-08 14:48:40.130927"]]  (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 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.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-03-08 14:48:40.135284"], ["updated_at", "2016-03-08 14:48:40.135284"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "48"], ["created_at", "2016-03-08 14:48:40.137234"], ["updated_at", "2016-03-08 14:48:40.137234"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:40.138355"], ["updated_at", "2016-03-08 14:48:40.138355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.140746"], ["updated_at", "2016-03-08 14:48:40.140746"]]  (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-03-08 14:48:40.201215"], ["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-03-08 14:48:40.204223"], ["updated_at", "2016-03-08 14:48:40.204223"]]  (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-03-08 14:48:40.206387"], ["updated_at", "2016-03-08 14:48:40.206387"]]  (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-03-08 14:48:40.207920"], ["updated_at", "2016-03-08 14:48:40.207920"]]  (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", "2016-03-08 14:48:40.209535"], ["updated_at", "2016-03-08 14:48:40.209535"]]  (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.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-03-08 14:48:40.226550"], ["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.5ms) 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", "2016-03-08 14:48:40.242598"], ["updated_at", "2016-03-08 14:48:40.242598"]]  (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.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-03-08 14:48:40.245680"], ["updated_at", "2016-03-08 14:48:40.245680"]]  (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", "49"], ["created_at", "2016-03-08 14:48:40.247751"], ["updated_at", "2016-03-08 14:48:40.247751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2016-03-08 14:48:40.249149"], ["updated_at", "2016-03-08 14:48:40.249149"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.252261"], ["updated_at", "2016-03-08 14:48:40.252261"]]  (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-03-08 14:48:40.253680"], ["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-03-08 14:48:40.255806"], ["updated_at", "2016-03-08 14:48:40.255806"]]  (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-03-08 14:48:40.257899"], ["updated_at", "2016-03-08 14:48:40.257899"]]  (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-03-08 14:48:40.259522"], ["updated_at", "2016-03-08 14:48:40.259522"]]  (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-03-08 14:48:40.261184"], ["updated_at", "2016-03-08 14:48:40.261184"]]  (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", "2016-03-08 14:48:40.275796"], ["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.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]] 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-03-08 14:48:40.282129"], ["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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 125"], ["key", "Key 125"], ["secret", "Account 125"], ["canvas_account_id", "124"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:40.291141"], ["updated_at", "2016-03-08 14:48:40.291141"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:48:40.294295"], ["updated_at", "2016-03-08 14:48:40.294295"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-03-08 14:48:40.296391"], ["updated_at", "2016-03-08 14:48:40.296391"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:40.297732"], ["updated_at", "2016-03-08 14:48:40.297732"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.300795"], ["updated_at", "2016-03-08 14:48:40.300795"]]  (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-03-08 14:48:40.302245"], ["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 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", "2016-03-08 14:48:40.310132"], ["updated_at", "2016-03-08 14:48:40.310132"]]  (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", "2016-03-08 14:48:40.313805"], ["updated_at", "2016-03-08 14:48:40.313805"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:40.315876"], ["updated_at", "2016-03-08 14:48:40.315876"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2016-03-08 14:48:40.317103"], ["updated_at", "2016-03-08 14:48:40.317103"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.319774"], ["updated_at", "2016-03-08 14:48:40.319774"]]  (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-03-08 14:48:40.321225"], ["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.2ms) 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.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", "2016-03-08 14:48:40.329746"], ["updated_at", "2016-03-08 14:48:40.329746"]]  (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.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 130"], ["key", "Key 130"], ["secret", "Account 130"], ["canvas_account_id", "129"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:40.333683"], ["updated_at", "2016-03-08 14:48:40.333683"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2016-03-08 14:48:40.336567"], ["updated_at", "2016-03-08 14:48:40.336567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:40.337861"], ["updated_at", "2016-03-08 14:48:40.337861"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.340955"], ["updated_at", "2016-03-08 14:48:40.340955"]]  (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-03-08 14:48:40.342678"], ["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 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.2ms) INSERT INTO "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-03-08 14:48:40.351027"], ["updated_at", "2016-03-08 14:48:40.351027"]]  (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.0ms) 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-03-08 14:48:40.354390"], ["updated_at", "2016-03-08 14:48:40.354390"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:40.356362"], ["updated_at", "2016-03-08 14:48:40.356362"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-08 14:48:40.357774"], ["updated_at", "2016-03-08 14:48:40.357774"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.360341"], ["updated_at", "2016-03-08 14:48:40.360341"]]  (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-03-08 14:48:40.361749"], ["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 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", "2016-03-08 14:48:40.370351"], ["updated_at", "2016-03-08 14:48:40.370351"]]  (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.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", "2016-03-08 14:48:40.373527"], ["updated_at", "2016-03-08 14:48:40.373527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2016-03-08 14:48:40.375282"], ["updated_at", "2016-03-08 14:48:40.375282"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:40.376389"], ["updated_at", "2016-03-08 14:48:40.376389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.378895"], ["updated_at", "2016-03-08 14:48:40.378895"]]  (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-03-08 14:48:40.380290"], ["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 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", "2016-03-08 14:48:40.387726"], ["updated_at", "2016-03-08 14:48:40.387726"]]  (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", "2016-03-08 14:48:40.391216"], ["updated_at", "2016-03-08 14:48:40.391216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:40.392981"], ["updated_at", "2016-03-08 14:48:40.392981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-03-08 14:48:40.394066"], ["updated_at", "2016-03-08 14:48:40.394066"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.396687"], ["updated_at", "2016-03-08 14:48:40.396687"]]  (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-03-08 14:48:40.398051"], ["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 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.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-03-08 14:48:40.464386"], ["updated_at", "2016-03-08 14:48:40.464386"]]  (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-03-08 14:48:40.467975"], ["updated_at", "2016-03-08 14:48:40.467975"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-08 14:48:40.469924"], ["updated_at", "2016-03-08 14:48:40.469924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:48:40.471127"], ["updated_at", "2016-03-08 14:48:40.471127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.473720"], ["updated_at", "2016-03-08 14:48:40.473720"]]  (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-03-08 14:48:40.475169"], ["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.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", "2016-03-08 14:48:40.482952"], ["updated_at", "2016-03-08 14:48:40.482952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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 140"], ["key", "Key 140"], ["secret", "Account 140"], ["canvas_account_id", "139"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:48:40.486317"], ["updated_at", "2016-03-08 14:48:40.486317"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:40.488396"], ["updated_at", "2016-03-08 14:48:40.488396"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2016-03-08 14:48:40.489627"], ["updated_at", "2016-03-08 14:48:40.489627"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.492164"], ["updated_at", "2016-03-08 14:48:40.492164"]]  (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-03-08 14:48:40.493514"], ["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.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.1ms) 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-03-08 14:48:40.503086"], ["updated_at", "2016-03-08 14:48:40.503086"]]  (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", "2016-03-08 14:48:40.506478"], ["updated_at", "2016-03-08 14:48:40.506478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:48:40.508301"], ["updated_at", "2016-03-08 14:48:40.508301"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-03-08 14:48:40.509424"], ["updated_at", "2016-03-08 14:48:40.509424"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:48:40.511815"], ["updated_at", "2016-03-08 14:48:40.511815"]]  (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-03-08 14:48:40.513531"], ["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", "2016-03-08 14:48:40.517526"], ["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  (1.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 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 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) SAVEPOINT 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", "2016-03-08 14:49:18.920897"], ["updated_at", "2016-03-08 14:49:18.920897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:49:18.934695"], ["updated_at", "2016-03-08 14:49:18.934695"]]  (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.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-03-08 15:49:18.954105"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-03-08 14:49:18.955980"], ["updated_at", "2016-03-08 14:49:18.955980"]]  (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 26ms (Views: 7.1ms | ActiveRecord: 0.7ms) 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.1ms) 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.5ms | 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.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", "2016-03-08 14:49:18.994242"], ["updated_at", "2016-03-08 14:49:18.994242"]]  (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", "2016-03-08 14:49:19.055764"], ["updated_at", "2016-03-08 14:49:19.055764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:19.059026"], ["updated_at", "2016-03-08 14:49:19.059026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-08 14:49:19.060841"], ["updated_at", "2016-03-08 14:49:19.060841"]]  (0.0ms) RELEASE 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 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-03-08 14:49:19.071390"], ["updated_at", "2016-03-08 14:49:19.071390"]]  (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.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 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:19.075615"], ["updated_at", "2016-03-08 14:49:19.075615"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:19.077907"], ["updated_at", "2016-03-08 14:49:19.077907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-03-08 14:49:19.079186"], ["updated_at", "2016-03-08 14:49:19.079186"]]  (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", "2016-03-08 14:49:19.084980"], ["updated_at", "2016-03-08 14:49:19.084980"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 7"], ["key", "Key 7"], ["secret", "Account 7"], ["canvas_account_id", "7"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:19.088308"], ["updated_at", "2016-03-08 14:49:19.088308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:19.090015"], ["updated_at", "2016-03-08 14:49:19.090015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-03-08 14:49:19.091133"], ["updated_at", "2016-03-08 14:49:19.091133"]]  (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.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-03-08 14:49:19.108797"], ["updated_at", "2016-03-08 14:49:19.108797"]]  (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.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", "2016-03-08 14:49:19.113069"], ["updated_at", "2016-03-08 14:49:19.113069"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:19.115051"], ["updated_at", "2016-03-08 14:49:19.115051"]]  (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", "4"], ["created_at", "2016-03-08 14:49:19.116926"], ["updated_at", "2016-03-08 14:49:19.116926"]]  (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.2ms) INSERT INTO "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-03-08 14:49:19.124228"], ["updated_at", "2016-03-08 14:49:19.124228"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:19.127289"], ["updated_at", "2016-03-08 14:49:19.127289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:19.129055"], ["updated_at", "2016-03-08 14:49:19.129055"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-03-08 14:49:19.130240"], ["updated_at", "2016-03-08 14:49:19.130240"]]  (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 12' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-08 14:49:19.136070"], ["updated_at", "2016-03-08 14:49:19.136070"]]  (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", "2016-03-08 14:49:19.139298"], ["updated_at", "2016-03-08 14:49:19.139298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:19.141261"], ["updated_at", "2016-03-08 14:49:19.141261"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-03-08 14:49:19.142606"], ["updated_at", "2016-03-08 14:49:19.142606"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-08 14:49:19.144594"], ["updated_at", "2016-03-08 14:49:19.144594"]]  (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", "2016-03-08 14:49:19.147730"], ["updated_at", "2016-03-08 14:49:19.147730"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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 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", "2016-03-08 14:49:19.153136"], ["updated_at", "2016-03-08 14:49:19.153136"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 15"], ["key", "Key 15"], ["secret", "Account 15"], ["canvas_account_id", "15"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:19.156289"], ["updated_at", "2016-03-08 14:49:19.156289"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:19.158118"], ["updated_at", "2016-03-08 14:49:19.158118"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-03-08 14:49:19.159313"], ["updated_at", "2016-03-08 14:49:19.159313"]]  (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-03-08 14:49:19.165439"], ["updated_at", "2016-03-08 14:49:19.165439"]]  (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.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.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  (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-03-09 14:49:19.178754"], ["created_at", "2016-03-08 14:49:19.179924"], ["updated_at", "2016-03-08 14:49:19.179924"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction  (0.0ms) begin transaction  (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", "2016-03-08 14:49:19.189487"], ["updated_at", "2016-03-08 14:49:19.189487"]]  (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", "2016-03-08 14:49:19.190927"], ["updated_at", "2016-03-08 14:49:19.190927"]]  (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", "2016-03-08 14:49:19.192097"], ["updated_at", "2016-03-08 14:49:19.192097"]]  (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.1ms) 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", "2016-03-08 14:49:19.201793"], ["updated_at", "2016-03-08 14:49:19.201793"]]  (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.2ms) INSERT INTO "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-03-08 14:49:19.206001"], ["updated_at", "2016-03-08 14:49:19.206001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-03-08 14:49:19.207822"], ["updated_at", "2016-03-08 14:49:19.207822"]]  (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 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-03-08 14:49:19.213177"], ["updated_at", "2016-03-08 14:49:19.213177"]]  (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.1ms) 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", "2016-03-08 14:49:19.216812"], ["updated_at", "2016-03-08 14:49:19.216812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:19.219072"], ["updated_at", "2016-03-08 14:49:19.219072"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 20"], ["key", "Key 20"], ["secret", "Account 20"], ["canvas_account_id", "20"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:19.223667"], ["updated_at", "2016-03-08 14:49:19.223667"]]  (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.2ms) INSERT INTO "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-03-08 14:49:19.227533"], ["updated_at", "2016-03-08 14:49:19.227533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2016-03-08 14:49:19.229800"], ["updated_at", "2016-03-08 14:49:19.229800"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-08 14:49:19.231187"], ["updated_at", "2016-03-08 14:49:19.231187"]]  (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", "2016-03-08 14:49:19.234932"], ["updated_at", "2016-03-08 14:49:19.234932"]]  (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", "11"], ["created_at", "2016-03-08 14:49:19.237242"], ["updated_at", "2016-03-08 14:49:19.237242"]]  (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-03-08 14:49:19.292347"], ["updated_at", "2016-03-08 14:49:19.292347"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-03-08 14:49:19.297919"], ["updated_at", "2016-03-08 14:49:19.297919"]]  (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", "2016-03-08 14:49:19.299982"], ["updated_at", "2016-03-08 14:49:19.299982"]]  (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", "2016-03-08 14:49:19.303575"], ["updated_at", "2016-03-08 14:49:19.303575"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-03-08 14:49:19.305735"], ["updated_at", "2016-03-08 14:49:19.305735"]]  (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", "2016-03-08 14:49:19.308682"], ["updated_at", "2016-03-08 14:49:19.308682"]]  (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", "2016-03-08 14:49:19.310763"], ["updated_at", "2016-03-08 14:49:19.310763"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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.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 26"], ["key", "Key 26"], ["secret", "Account 26"], ["canvas_account_id", "26"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:19.315798"], ["updated_at", "2016-03-08 14:49:19.315798"]]  (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 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", "2016-03-08 14:49:19.319874"], ["updated_at", "2016-03-08 14:49:19.319874"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:19.321775"], ["updated_at", "2016-03-08 14:49:19.321775"]]  (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.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", "2016-03-08 14:49:19.334594"], ["updated_at", "2016-03-08 14:49:19.334594"]]  (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", "2016-03-08 14:49:19.337189"], ["updated_at", "2016-03-08 14:49:19.337189"]]  (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.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", "2016-03-08 14:49:19.347868"], ["updated_at", "2016-03-08 14:49:19.347868"]]  (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-03-08 14:49:19.352559"], ["updated_at", "2016-03-08 14:49:19.352559"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:49:19.354542"], ["updated_at", "2016-03-08 14:49:19.354542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:19.355769"], ["updated_at", "2016-03-08 14:49:19.355769"]]  (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-03-08 14:49:19.357751"], ["updated_at", "2016-03-08 14:49:19.357751"]]  (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 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", "2016-03-08 14:49:19.364591"], ["updated_at", "2016-03-08 14:49:19.364591"]]  (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", "2016-03-08 14:49:19.367127"], ["updated_at", "2016-03-08 14:49:19.367127"]]  (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", "2016-03-08 14:49:19.370691"], ["updated_at", "2016-03-08 14:49:19.370691"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:19.373551"], ["updated_at", "2016-03-08 14:49:19.373551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:49:19.375411"], ["updated_at", "2016-03-08 14:49:19.375411"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-03-08 14:49:19.376570"], ["updated_at", "2016-03-08 14:49:19.376570"]]  (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-03-08 14:49:19.377757"], ["updated_at", "2016-03-08 14:49:19.377757"]]  (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.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 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:19.383596"], ["updated_at", "2016-03-08 14:49:19.383596"]]  (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", "2016-03-08 14:49:19.386437"], ["updated_at", "2016-03-08 14:49:19.386437"]]  (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-03-08 14:49:19.390237"], ["updated_at", "2016-03-08 14:49:19.390237"]]  (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.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", "2016-03-08 14:49:19.393435"], ["updated_at", "2016-03-08 14:49:19.393435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:49:19.395142"], ["updated_at", "2016-03-08 14:49:19.395142"]]  (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", "12"], ["created_at", "2016-03-08 14:49:19.396472"], ["updated_at", "2016-03-08 14:49:19.396472"]]  (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-03-08 14:49:19.398115"], ["updated_at", "2016-03-08 14:49:19.398115"]]  (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 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", "2016-03-08 14:49:19.405015"], ["updated_at", "2016-03-08 14:49:19.405015"]]  (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", "2016-03-08 14:49:19.408433"], ["updated_at", "2016-03-08 14:49:19.408433"]]  (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", "2016-03-08 14:49:19.412024"], ["updated_at", "2016-03-08 14:49:19.412024"]]  (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.1ms) 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", "2016-03-08 14:49:19.415477"], ["updated_at", "2016-03-08 14:49:19.415477"]]  (0.1ms) 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", "17"], ["created_at", "2016-03-08 14:49:19.418054"], ["updated_at", "2016-03-08 14:49:19.418054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-03-08 14:49:19.420418"], ["updated_at", "2016-03-08 14:49:19.420418"]]  (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-03-08 14:49:19.422363"], ["updated_at", "2016-03-08 14:49:19.422363"]]  (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", "2016-03-08 14:49:19.424483"], ["updated_at", "2016-03-08 14:49:19.424483"]]  (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", "2016-03-08 14:49:19.426345"], ["updated_at", "2016-03-08 14:49:19.426345"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO 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 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-03-08 14:49:19.431566"], ["updated_at", "2016-03-08 14:49:19.431566"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-03-08 14:49:19.434522"], ["updated_at", "2016-03-08 14:49:19.434522"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:49:19.437349"], ["updated_at", "2016-03-08 14:49:19.437349"]]  (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", "2016-03-08 14:49:19.440778"], ["updated_at", "2016-03-08 14:49:19.440778"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:49:19.442447"], ["updated_at", "2016-03-08 14:49:19.442447"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:19.443736"], ["updated_at", "2016-03-08 14:49:19.443736"]]  (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-03-08 14:49:19.444975"], ["updated_at", "2016-03-08 14:49:19.444975"]]  (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-03-08 14:49:19.446500"], ["updated_at", "2016-03-08 14:49:19.446500"]]  (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-03-08 14:49:19.448181"], ["updated_at", "2016-03-08 14:49:19.448181"]]  (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 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-03-08 14:49:19.454784"], ["updated_at", "2016-03-08 14:49:19.454784"]]  (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", "2016-03-08 14:49:19.457727"], ["updated_at", "2016-03-08 14:49:19.457727"]]  (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-03-08 14:49:19.460770"], ["updated_at", "2016-03-08 14:49:19.460770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:19.463508"], ["updated_at", "2016-03-08 14:49:19.463508"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:49:19.465029"], ["updated_at", "2016-03-08 14:49:19.465029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-03-08 14:49:19.466483"], ["updated_at", "2016-03-08 14:49:19.466483"]]  (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-03-08 14:49:19.468179"], ["updated_at", "2016-03-08 14:49:19.468179"]]  (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.0ms) SAVEPOINT 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.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-03-08 14:49:19.480337"], ["updated_at", "2016-03-08 14:49:19.480337"]]  (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 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", "2016-03-08 14:49:19.487474"], ["updated_at", "2016-03-08 14:49:19.487474"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-03-08 14:49:19.489904"], ["updated_at", "2016-03-08 14:49:19.489904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:19.491271"], ["updated_at", "2016-03-08 14:49:19.491271"]]  (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.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-03-08 14:49:19.497727"], ["updated_at", "2016-03-08 14:49:19.497727"]]  (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 50' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-03-08 14:49:19.503288"], ["updated_at", "2016-03-08 14:49:19.503288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-03-08 14:49:19.505822"], ["updated_at", "2016-03-08 14:49:19.505822"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:19.506964"], ["updated_at", "2016-03-08 14:49:19.506964"]]  (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", "2016-03-08 14:49:19.511370"], ["updated_at", "2016-03-08 14:49:19.511370"]]  (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 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-03-08 14:49:19.514727"], ["updated_at", "2016-03-08 14:49:19.514727"]]  (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", "22"], ["created_at", "2016-03-08 14:49:19.517480"], ["updated_at", "2016-03-08 14:49:19.517480"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:19.519031"], ["updated_at", "2016-03-08 14:49:19.519031"]]  (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-03-08 14:49:19.520581"], ["updated_at", "2016-03-08 14:49:19.520581"]]  (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-03-08 14:49:19.522212"], ["updated_at", "2016-03-08 14:49:19.522212"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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", "2016-03-08 14:49:19.526761"], ["updated_at", "2016-03-08 14:49:19.526761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "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-03-08 14:49:19.529787"], ["updated_at", "2016-03-08 14:49:19.529787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-03-08 14:49:19.531647"], ["updated_at", "2016-03-08 14:49:19.531647"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:19.533154"], ["updated_at", "2016-03-08 14:49:19.533154"]]  (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.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.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", "2016-03-08 14:49:19.603001"], ["updated_at", "2016-03-08 14:49:19.603001"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", "2016-03-08 14:49:19.606287"], ["updated_at", "2016-03-08 14:49:19.606287"]]  (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", "2016-03-08 14:49:19.609972"], ["updated_at", "2016-03-08 14:49:19.609972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:19.612612"], ["updated_at", "2016-03-08 14:49:19.612612"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:49:19.614080"], ["updated_at", "2016-03-08 14:49:19.614080"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:19.615180"], ["updated_at", "2016-03-08 14:49:19.615180"]]  (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", "2016-03-08 14:49:19.616654"], ["updated_at", "2016-03-08 14:49:19.616654"]]  (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 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-03-08 14:49:19.623671"], ["updated_at", "2016-03-08 14:49:19.623671"]]  (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", "test9@test.com"], ["name", "Factory User 9"], ["canvas_user_id", "9"], ["created_at", "2016-03-08 14:49:19.625949"], ["updated_at", "2016-03-08 14:49:19.625949"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:49:19.628739"], ["updated_at", "2016-03-08 14:49:19.628739"]]  (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 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", "2016-03-08 14:49:19.632544"], ["updated_at", "2016-03-08 14:49:19.632544"]]  (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", "25"], ["created_at", "2016-03-08 14:49:19.635156"], ["updated_at", "2016-03-08 14:49:19.635156"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-03-08 14:49:19.636896"], ["updated_at", "2016-03-08 14:49:19.636896"]]  (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-03-08 14:49:19.638442"], ["updated_at", "2016-03-08 14:49:19.638442"]]  (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", "2016-03-08 14:49:19.644135"], ["updated_at", "2016-03-08 14:49:19.644135"]]  (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", "test10@test.com"], ["name", "Factory User 10"], ["canvas_user_id", "10"], ["created_at", "2016-03-08 14:49:19.646232"], ["updated_at", "2016-03-08 14:49:19.646232"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:19.648788"], ["updated_at", "2016-03-08 14:49:19.648788"]]  (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.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", "2016-03-08 14:49:19.651913"], ["updated_at", "2016-03-08 14:49:19.651913"]]  (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", "26"], ["created_at", "2016-03-08 14:49:19.654551"], ["updated_at", "2016-03-08 14:49:19.654551"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:19.656292"], ["updated_at", "2016-03-08 14:49:19.656292"]]  (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-03-08 14:49:19.657913"], ["updated_at", "2016-03-08 14:49:19.657913"]]  (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", "2016-03-08 14:49:19.663552"], ["updated_at", "2016-03-08 14:49:19.663552"]]  (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", "test11@test.com"], ["name", "Factory User 11"], ["canvas_user_id", "11"], ["created_at", "2016-03-08 14:49:19.665797"], ["updated_at", "2016-03-08 14:49:19.665797"]]  (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 65' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-03-08 14:49:19.669672"], ["updated_at", "2016-03-08 14:49:19.669672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:49:19.672918"], ["updated_at", "2016-03-08 14:49:19.672918"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:49:19.674478"], ["updated_at", "2016-03-08 14:49:19.674478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-03-08 14:49:19.675898"], ["updated_at", "2016-03-08 14:49:19.675898"]]  (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-03-08 14:49:19.677167"], ["updated_at", "2016-03-08 14:49:19.677167"]]  (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", "2016-03-08 14:49:19.678914"], ["updated_at", "2016-03-08 14:49:19.678914"]]  (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-03-08 14:49:19.680669"], ["updated_at", "2016-03-08 14:49:19.680669"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (0.0ms) ROLLBACK TO 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 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", "2016-03-08 14:49:19.687844"], ["updated_at", "2016-03-08 14:49:19.687844"]]  (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", "test12@test.com"], ["name", "Factory User 12"], ["canvas_user_id", "12"], ["created_at", "2016-03-08 14:49:19.690067"], ["updated_at", "2016-03-08 14:49:19.690067"]]  (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", "2016-03-08 14:49:19.692858"], ["updated_at", "2016-03-08 14:49:19.692858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:19.695596"], ["updated_at", "2016-03-08 14:49:19.695596"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-03-08 14:49:19.697160"], ["updated_at", "2016-03-08 14:49:19.697160"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:19.698447"], ["updated_at", "2016-03-08 14:49:19.698447"]]  (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-03-08 14:49:19.700186"], ["updated_at", "2016-03-08 14:49:19.700186"]]  (0.1ms) 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-03-08 14:49:19.702512"], ["updated_at", "2016-03-08 14:49:19.702512"]]  (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-03-08 14:49:19.704351"], ["updated_at", "2016-03-08 14:49:19.704351"]]  (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", "2016-03-08 14:49:19.708881"], ["updated_at", "2016-03-08 14:49:19.708881"]]  (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", "2016-03-08 14:49:19.710821"], ["updated_at", "2016-03-08 14:49:19.710821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-03-08 14:49:19.713510"], ["updated_at", "2016-03-08 14:49:19.713510"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 72"], ["key", "Key 72"], ["secret", "Account 72"], ["canvas_account_id", "71"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:19.716694"], ["updated_at", "2016-03-08 14:49:19.716694"]]  (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", "29"], ["created_at", "2016-03-08 14:49:19.720083"], ["updated_at", "2016-03-08 14:49:19.720083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-03-08 14:49:19.721430"], ["updated_at", "2016-03-08 14:49:19.721430"]]  (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-03-08 14:49:19.722864"], ["updated_at", "2016-03-08 14:49:19.722864"]]  (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", "2016-03-08 14:49:19.728810"], ["updated_at", "2016-03-08 14:49:19.728810"]]  (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.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 74"], ["key", "Key 74"], ["secret", "Account 74"], ["canvas_account_id", "73"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:19.733974"], ["updated_at", "2016-03-08 14:49:19.733974"]]  (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", "2016-03-08 14:49:19.736870"], ["updated_at", "2016-03-08 14:49:19.736870"]]  (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-03-08 14:49:19.738947"], ["updated_at", "2016-03-08 14:49:19.738947"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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.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", "2016-03-08 14:49:19.745067"], ["updated_at", "2016-03-08 14:49:19.745067"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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 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-03-08 14:49:19.752325"], ["updated_at", "2016-03-08 14:49:19.752325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.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 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", "2016-03-08 14:49:19.756964"], ["updated_at", "2016-03-08 14:49:19.756964"]]  (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", "2016-03-08 14:49:19.759251"], ["updated_at", "2016-03-08 14:49:19.759251"]]  (0.1ms) 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-03-08 14:49:19.762395"], ["updated_at", "2016-03-08 14:49:19.762395"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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.2ms) 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.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", "2016-03-08 14:49:19.769205"], ["updated_at", "2016-03-08 14:49:19.769205"]]  (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", "2016-03-08 14:49:19.776697"], ["updated_at", "2016-03-08 14:49:19.776697"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-08 14:49:19.788254"], ["updated_at", "2016-03-08 14:49:19.788254"]]  (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-03-08 14:49:19.789882"], ["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.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 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", "2016-03-08 14:49:19.795767"], ["updated_at", "2016-03-08 14:49:19.795767"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-08 14:49:19.799021"], ["updated_at", "2016-03-08 14:49:19.799021"]]  (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", "2016-03-08 14:49:19.800793"], ["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", "2016-03-08 14:49:19.806585"], ["updated_at", "2016-03-08 14:49:19.806585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-08 14:49:19.809800"], ["updated_at", "2016-03-08 14:49:19.809800"]]  (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-03-08 14:49:19.811173"], ["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", "2016-03-08 14:49:19.879278"], ["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.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-03-08 14:49:19.883793"], ["updated_at", "2016-03-08 14:49:19.883793"]]  (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", "2016-03-08 14:49:19.887157"], ["updated_at", "2016-03-08 14:49:19.887157"]]  (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", "2016-03-08 14:49:19.888913"], ["updated_at", "2016-03-08 14:49:19.888913"]]  (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-03-08 14:49:19.891223"], ["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-03-08 14:49:19.892407"], ["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", "2016-03-08 14:49:19.897617"], ["updated_at", "2016-03-08 14:49:19.897617"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-08 14:49:19.900756"], ["updated_at", "2016-03-08 14:49:19.900756"]]  (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-03-08 14:49:19.902609"], ["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", "2016-03-08 14:49:19.906837"], ["updated_at", "2016-03-08 14:49:19.906837"]]  (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", "2016-03-08 14:49:19.909470"], ["updated_at", "2016-03-08 14:49:19.909470"]]  (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", "2016-03-08 14:49:19.915521"], ["updated_at", "2016-03-08 14:49:19.915521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-08 14:49:19.919053"], ["updated_at", "2016-03-08 14:49:19.919053"]]  (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-03-08 14:49:19.920803"], ["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", "2016-03-08 14:49:19.923268"], ["updated_at", "2016-03-08 14:49:19.923268"]]  (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-03-08 14:49:19.925525"], ["updated_at", "2016-03-08 14:49:19.925525"]]  (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-03-08 14:49:19.927526"], ["updated_at", "2016-03-08 14:49:19.927526"]]  (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.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 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:19.934097"], ["updated_at", "2016-03-08 14:49:19.934097"]]  (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", "2016-03-08 14:49:19.938727"], ["updated_at", "2016-03-08 14:49:19.938727"]]  (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-03-08 14:49:19.940615"], ["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", "2016-03-08 14:49:19.945695"], ["updated_at", "2016-03-08 14:49:19.945695"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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", "2016-03-08 14:49:19.948709"], ["updated_at", "2016-03-08 14:49:19.948709"]]  (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-03-08 14:49:19.950242"], ["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.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 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", "2016-03-08 14:49:19.957395"], ["updated_at", "2016-03-08 14:49:19.957395"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? 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-03-08 14:49:19.960814"], ["updated_at", "2016-03-08 14:49:19.960814"]]  (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-03-08 14:49:19.962320"], ["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", "2016-03-08 14:49:19.965025"], ["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.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 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-03-08 14:49:19.973761"], ["updated_at", "2016-03-08 14:49:19.973761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:19.976854"], ["updated_at", "2016-03-08 14:49:19.976854"]]  (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-03-08 14:49:19.978955"], ["updated_at", "2016-03-08 14:49:19.978955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "26"], ["created_at", "2016-03-08 14:49:19.980376"], ["updated_at", "2016-03-08 14:49:19.980376"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:19.983316"], ["updated_at", "2016-03-08 14:49:19.983316"]]  (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-03-08 14:49:19.985791"], ["id", 1]]  (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 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", "2016-03-08 14:49:19.993884"], ["updated_at", "2016-03-08 14:49:19.993884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 90"], ["key", "Key 90"], ["secret", "Account 90"], ["canvas_account_id", "89"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:19.996923"], ["updated_at", "2016-03-08 14:49:19.996923"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:19.998601"], ["updated_at", "2016-03-08 14:49:19.998601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "27"], ["created_at", "2016-03-08 14:49:19.999970"], ["updated_at", "2016-03-08 14:49:19.999970"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.003467"], ["updated_at", "2016-03-08 14:49:20.003467"]]  (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-03-08 14:49:20.005810"], ["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-03-08 14:49:20.013744"], ["updated_at", "2016-03-08 14:49:20.013744"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:20.016760"], ["updated_at", "2016-03-08 14:49:20.016760"]]  (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", "33"], ["created_at", "2016-03-08 14:49:20.018900"], ["updated_at", "2016-03-08 14:49:20.018900"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:20.020694"], ["updated_at", "2016-03-08 14:49:20.020694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.023692"], ["updated_at", "2016-03-08 14:49:20.023692"]]  (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", "2016-03-08 14:49:20.025258"], ["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", "2016-03-08 14:49:20.032174"], ["updated_at", "2016-03-08 14:49:20.032174"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 94"], ["key", "Key 94"], ["secret", "Account 94"], ["canvas_account_id", "93"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:20.035600"], ["updated_at", "2016-03-08 14:49:20.035600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:20.037318"], ["updated_at", "2016-03-08 14:49:20.037318"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "29"], ["created_at", "2016-03-08 14:49:20.038707"], ["updated_at", "2016-03-08 14:49:20.038707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.041850"], ["updated_at", "2016-03-08 14:49:20.041850"]]  (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-03-08 14:49:20.043515"], ["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.2ms) 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", "2016-03-08 14:49:20.051763"], ["updated_at", "2016-03-08 14:49:20.051763"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:20.055272"], ["updated_at", "2016-03-08 14:49:20.055272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-03-08 14:49:20.057107"], ["updated_at", "2016-03-08 14:49:20.057107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:20.058224"], ["updated_at", "2016-03-08 14:49:20.058224"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.060679"], ["updated_at", "2016-03-08 14:49:20.060679"]]  (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-03-08 14:49:20.061989"], ["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", "2016-03-08 14:49:20.069908"], ["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-03-08 14:49:20.074547"], ["updated_at", "2016-03-08 14:49:20.074547"]]  (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"."id" != 1) [["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", 12.5], ["updated_at", "2016-03-08 14:49:20.078312"], ["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.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-03-08 14:49:20.082620"], ["updated_at", "2016-03-08 14:49:20.082620"]]  (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-03-08 14:49:20.084921"], ["updated_at", "2016-03-08 14:49:20.084921"]]  (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", "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-03-08 14:49:20.088171"], ["updated_at", "2016-03-08 14:49:20.088171"]]  (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", "2016-03-08 14:49:20.154940"], ["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.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.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) 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-03-08 14:49:20.172784"], ["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.1ms) 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", "2016-03-08 14:49:20.177171"], ["updated_at", "2016-03-08 14:49:20.177171"]]  (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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2016-03-08 14:49:20.180299"], ["id", 1]]  (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", "2016-03-08 14:49:20.200176"], ["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.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-03-08 14:49:20.203785"], ["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.2ms) INSERT INTO "coalescing_panda_groups" ("context_id", "context_type", "canvas_group_id", "leader_id", "group_category_id", "name", "members_count", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["context_id", 1], ["context_type", "CoalescingPanda::Course"], ["canvas_group_id", "4"], ["leader_id", 2], ["group_category_id", "1"], ["name", "Student Group 1"], ["members_count", 2], ["created_at", "2016-03-08 14:49:20.215889"], ["updated_at", "2016-03-08 14:49:20.215889"]]  (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-03-08 14:49:20.218899"], ["updated_at", "2016-03-08 14:49:20.218899"]]  (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", "2016-03-08 14:49:20.220999"], ["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.2ms) INSERT INTO "coalescing_panda_group_memberships" ("canvas_group_membership_id", "coalescing_panda_group_id", "coalescing_panda_user_id", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["canvas_group_membership_id", "13"], ["coalescing_panda_group_id", 1], ["coalescing_panda_user_id", 2], ["moderator", "t"], ["workflow_state", "accepted"], ["created_at", "2016-03-08 14:49:20.232486"], ["updated_at", "2016-03-08 14:49:20.232486"]]  (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-03-08 14:49:20.236121"], ["updated_at", "2016-03-08 14:49:20.236121"]]  (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.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, 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-03-08 14:49:20.244409"], ["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-03-08 14:49:20.245688"], ["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.4ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Section Load (0.1ms) 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.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", "2016-03-08 14:49:20.254067"], ["updated_at", "2016-03-08 14:49:20.254067"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 98"], ["key", "Key 98"], ["secret", "Account 98"], ["canvas_account_id", "97"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:20.257328"], ["updated_at", "2016-03-08 14:49:20.257328"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:20.259121"], ["updated_at", "2016-03-08 14:49:20.259121"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "31"], ["created_at", "2016-03-08 14:49:20.260241"], ["updated_at", "2016-03-08 14:49:20.260241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.262770"], ["updated_at", "2016-03-08 14:49:20.262770"]]  (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-03-08 14:49:20.264130"], ["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-03-08 14:49:20.266288"], ["updated_at", "2016-03-08 14:49:20.266288"]]  (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"  (1.2ms) rollback transaction  (0.1ms) 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", "2016-03-08 14:49:20.275077"], ["updated_at", "2016-03-08 14:49:20.275077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:20.278054"], ["updated_at", "2016-03-08 14:49:20.278054"]]  (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", "37"], ["created_at", "2016-03-08 14:49:20.279848"], ["updated_at", "2016-03-08 14:49:20.279848"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-03-08 14:49:20.281010"], ["updated_at", "2016-03-08 14:49:20.281010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.283513"], ["updated_at", "2016-03-08 14:49:20.283513"]]  (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", "2016-03-08 14:49:20.285233"], ["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.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-03-08 14:49:20.287907"], ["updated_at", "2016-03-08 14:49:20.287907"]]  (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-03-08 14:49:20.290429"], ["updated_at", "2016-03-08 14:49:20.290429"]]  (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", "2016-03-08 14:49:20.292294"], ["updated_at", "2016-03-08 14:49:20.292294"]]  (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.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 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.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 101"], ["key", "Key 101"], ["secret", "Account 101"], ["canvas_account_id", "100"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:20.300168"], ["updated_at", "2016-03-08 14:49:20.300168"]]  (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 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-03-08 14:49:20.305679"], ["updated_at", "2016-03-08 14:49:20.305679"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:20.307630"], ["updated_at", "2016-03-08 14:49:20.307630"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "33"], ["created_at", "2016-03-08 14:49:20.308812"], ["updated_at", "2016-03-08 14:49:20.308812"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.311387"], ["updated_at", "2016-03-08 14:49:20.311387"]]  (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-03-08 14:49:20.312722"], ["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-03-08 14:49:20.314803"], ["updated_at", "2016-03-08 14:49:20.314803"]]  (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-03-08 14:49:20.317306"], ["updated_at", "2016-03-08 14:49:20.317306"]]  (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-03-08 14:49:20.319008"], ["updated_at", "2016-03-08 14:49:20.319008"]]  (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", "2016-03-08 14:49:20.375769"], ["updated_at", "2016-03-08 14:49:20.375769"]]  (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]]  (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", "2016-03-08 14:49:20.397701"], ["updated_at", "2016-03-08 14:49:20.397701"]]  (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.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-03-08 14:49:20.402207"], ["updated_at", "2016-03-08 14:49:20.402207"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "39"], ["created_at", "2016-03-08 14:49:20.404505"], ["updated_at", "2016-03-08 14:49:20.404505"]]  (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", "34"], ["created_at", "2016-03-08 14:49:20.405802"], ["updated_at", "2016-03-08 14:49:20.405802"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.408516"], ["updated_at", "2016-03-08 14:49:20.408516"]]  (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-03-08 14:49:20.409882"], ["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", "2016-03-08 14:49:20.416040"], ["updated_at", "2016-03-08 14:49:20.416040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_categories"  (0.7ms) 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.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-03-08 14:49:20.424622"], ["updated_at", "2016-03-08 14:49:20.424622"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 106"], ["key", "Key 106"], ["secret", "Account 106"], ["canvas_account_id", "105"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:20.427761"], ["updated_at", "2016-03-08 14:49:20.427761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:20.429583"], ["updated_at", "2016-03-08 14:49:20.429583"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "35"], ["created_at", "2016-03-08 14:49:20.430716"], ["updated_at", "2016-03-08 14:49:20.430716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.433215"], ["updated_at", "2016-03-08 14:49:20.433215"]]  (0.2ms) 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-03-08 14:49:20.435214"], ["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-03-08 14:49:20.437683"], ["updated_at", "2016-03-08 14:49:20.437683"]]  (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.8ms) rollback transaction  (0.1ms) 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.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", "2016-03-08 14:49:20.457419"], ["updated_at", "2016-03-08 14:49:20.457419"]]  (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", "2016-03-08 14:49:20.461256"], ["updated_at", "2016-03-08 14:49:20.461256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "41"], ["created_at", "2016-03-08 14:49:20.463203"], ["updated_at", "2016-03-08 14:49:20.463203"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:20.464374"], ["updated_at", "2016-03-08 14:49:20.464374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.467296"], ["updated_at", "2016-03-08 14:49:20.467296"]]  (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-03-08 14:49:20.468894"], ["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-03-08 14:49:20.471275"], ["updated_at", "2016-03-08 14:49:20.471275"]]  (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-03-08 14:49:20.478840"], ["updated_at", "2016-03-08 14:49:20.478840"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:20.481991"], ["updated_at", "2016-03-08 14:49:20.481991"]]  (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", "42"], ["created_at", "2016-03-08 14:49:20.483920"], ["updated_at", "2016-03-08 14:49:20.483920"]]  (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", "37"], ["created_at", "2016-03-08 14:49:20.486138"], ["updated_at", "2016-03-08 14:49:20.486138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.489774"], ["updated_at", "2016-03-08 14:49:20.489774"]]  (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-03-08 14:49:20.491305"], ["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-03-08 14:49:20.493595"], ["updated_at", "2016-03-08 14:49:20.493595"]]  (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-03-08 14:49:20.495736"], ["updated_at", "2016-03-08 14:49:20.495736"]]  (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-03-08 14:49:20.497281"], ["updated_at", "2016-03-08 14:49:20.497281"]]  (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", "2016-03-08 14:49:20.498828"], ["updated_at", "2016-03-08 14:49:20.498828"]]  (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.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.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.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", "2016-03-08 14:49:20.531429"], ["updated_at", "2016-03-08 14:49:20.531429"]]  (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.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", "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-03-08 14:49:20.535718"], ["updated_at", "2016-03-08 14:49:20.535718"]]  (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", "2016-03-08 14:49:20.539329"], ["updated_at", "2016-03-08 14:49:20.539329"]]  (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", "2016-03-08 14:49:20.542493"], ["updated_at", "2016-03-08 14:49:20.542493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_submissions"  (1.1ms) 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.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", "2016-03-08 14:49:20.550490"], ["updated_at", "2016-03-08 14:49:20.550490"]]  (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-03-08 14:49:20.554490"], ["updated_at", "2016-03-08 14:49:20.554490"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-03-08 14:49:20.556916"], ["updated_at", "2016-03-08 14:49:20.556916"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:20.558420"], ["updated_at", "2016-03-08 14:49:20.558420"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.561107"], ["updated_at", "2016-03-08 14:49:20.561107"]]  (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-03-08 14:49:20.562466"], ["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-03-08 14:49:20.564596"], ["updated_at", "2016-03-08 14:49:20.564596"]]  (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"]]  (2.8ms) 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-03-08 14:49:20.626977"], ["updated_at", "2016-03-08 14:49:20.626977"]]  (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-03-08 14:49:20.630286"], ["updated_at", "2016-03-08 14:49:20.630286"]]  (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.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.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", "2016-03-08 14:49:20.639267"], ["updated_at", "2016-03-08 14:49:20.639267"]]  (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", "2016-03-08 14:49:20.642837"], ["updated_at", "2016-03-08 14:49:20.642837"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "44"], ["created_at", "2016-03-08 14:49:20.645329"], ["updated_at", "2016-03-08 14:49:20.645329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:20.646897"], ["updated_at", "2016-03-08 14:49:20.646897"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.649997"], ["updated_at", "2016-03-08 14:49:20.649997"]]  (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-03-08 14:49:20.652015"], ["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.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-03-08 14:49:20.655433"], ["updated_at", "2016-03-08 14:49:20.655433"]]  (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-03-08 14:49:20.657967"], ["updated_at", "2016-03-08 14:49:20.657967"]]  (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-03-08 14:49:20.659557"], ["updated_at", "2016-03-08 14:49:20.659557"]]  (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", "2016-03-08 14:49:20.661069"], ["updated_at", "2016-03-08 14:49:20.661069"]]  (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::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-03-08 14:49:20.679336"], ["updated_at", "2016-03-08 14:49:20.679336"]]  (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", "2016-03-08 14:49:20.681532"], ["updated_at", "2016-03-08 14:49:20.681532"]]  (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.8ms) 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", "2016-03-08 14:49:20.691211"], ["updated_at", "2016-03-08 14:49:20.691211"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 116"], ["key", "Key 116"], ["secret", "Account 116"], ["canvas_account_id", "115"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:20.694309"], ["updated_at", "2016-03-08 14:49:20.694309"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:20.696451"], ["updated_at", "2016-03-08 14:49:20.696451"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "40"], ["created_at", "2016-03-08 14:49:20.697773"], ["updated_at", "2016-03-08 14:49:20.697773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.700383"], ["updated_at", "2016-03-08 14:49:20.700383"]]  (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-03-08 14:49:20.701939"], ["id", 1]]  (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", "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-03-08 14:49:20.706994"], ["updated_at", "2016-03-08 14:49:20.706994"]]  (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-03-08 14:49:20.709572"], ["updated_at", "2016-03-08 14:49:20.709572"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (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", "2016-03-08 14:49:20.717228"], ["updated_at", "2016-03-08 14:49:20.717228"]]  (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.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", "2016-03-08 14:49:20.721217"], ["updated_at", "2016-03-08 14:49:20.721217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:20.723707"], ["updated_at", "2016-03-08 14:49:20.723707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-03-08 14:49:20.725217"], ["updated_at", "2016-03-08 14:49:20.725217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.728178"], ["updated_at", "2016-03-08 14:49:20.728178"]]  (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-03-08 14:49:20.729679"], ["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-03-08 14:49:20.731829"], ["updated_at", "2016-03-08 14:49:20.731829"]]  (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", "2016-03-08 14:49:20.733959"], ["updated_at", "2016-03-08 14:49:20.733959"]]  (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", "2016-03-08 14:49:20.736624"], ["updated_at", "2016-03-08 14:49:20.736624"]]  (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", "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-03-08 14:49:20.739410"], ["updated_at", "2016-03-08 14:49:20.739410"]]  (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.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"], ["updated_at", "2016-03-08 14:49:20.756243"], ["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.1ms) 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.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) 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.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 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-03-08 14:49:20.775255"], ["updated_at", "2016-03-08 14:49:20.775255"]]  (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.2ms) INSERT INTO "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-03-08 14:49:20.778766"], ["updated_at", "2016-03-08 14:49:20.778766"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-03-08 14:49:20.780585"], ["updated_at", "2016-03-08 14:49:20.780585"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:20.781684"], ["updated_at", "2016-03-08 14:49:20.781684"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.784110"], ["updated_at", "2016-03-08 14:49:20.784110"]]  (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-03-08 14:49:20.785618"], ["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-03-08 14:49:20.788162"], ["updated_at", "2016-03-08 14:49:20.788162"]]  (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-03-08 14:49:20.790755"], ["updated_at", "2016-03-08 14:49:20.790755"]]  (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-03-08 14:49:20.792415"], ["updated_at", "2016-03-08 14:49:20.792415"]]  (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", "2016-03-08 14:49:20.794094"], ["updated_at", "2016-03-08 14:49:20.794094"]]  (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.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.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.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-03-08 14:49:20.811920"], ["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.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  (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"]]  (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.1ms) 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-03-08 14:49:20.830181"], ["updated_at", "2016-03-08 14:49:20.830181"]]  (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.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", "2016-03-08 14:49:20.833352"], ["updated_at", "2016-03-08 14:49:20.833352"]]  (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", "48"], ["created_at", "2016-03-08 14:49:20.836297"], ["updated_at", "2016-03-08 14:49:20.836297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:20.838188"], ["updated_at", "2016-03-08 14:49:20.838188"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.841117"], ["updated_at", "2016-03-08 14:49:20.841117"]]  (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-03-08 14:49:20.903674"], ["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-03-08 14:49:20.906886"], ["updated_at", "2016-03-08 14:49:20.906886"]]  (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-03-08 14:49:20.909396"], ["updated_at", "2016-03-08 14:49:20.909396"]]  (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-03-08 14:49:20.911045"], ["updated_at", "2016-03-08 14:49:20.911045"]]  (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-03-08 14:49:20.912542"], ["updated_at", "2016-03-08 14:49:20.912542"]]  (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.7ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_section_id", "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.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-03-08 14:49:20.931329"], ["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.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 (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.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-03-08 14:49:20.948277"], ["updated_at", "2016-03-08 14:49:20.948277"]]  (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.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", "2016-03-08 14:49:20.952208"], ["updated_at", "2016-03-08 14:49:20.952208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:20.954669"], ["updated_at", "2016-03-08 14:49:20.954669"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "44"], ["created_at", "2016-03-08 14:49:20.955869"], ["updated_at", "2016-03-08 14:49:20.955869"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:20.958515"], ["updated_at", "2016-03-08 14:49:20.958515"]]  (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-03-08 14:49:20.960049"], ["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-03-08 14:49:20.962360"], ["updated_at", "2016-03-08 14:49:20.962360"]]  (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-03-08 14:49:20.964606"], ["updated_at", "2016-03-08 14:49:20.964606"]]  (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-03-08 14:49:20.966270"], ["updated_at", "2016-03-08 14:49:20.966270"]]  (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-03-08 14:49:20.967885"], ["updated_at", "2016-03-08 14:49:20.967885"]]  (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.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- :users\n- :soft_delete\n"], ["updated_at", "2016-03-08 14:49:20.985067"], ["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.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-03-08 14:49:20.992052"], ["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.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 125' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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", "2016-03-08 14:49:21.003948"], ["updated_at", "2016-03-08 14:49:21.003948"]]  (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.2ms) INSERT INTO "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-03-08 14:49:21.008408"], ["updated_at", "2016-03-08 14:49:21.008408"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "50"], ["created_at", "2016-03-08 14:49:21.010244"], ["updated_at", "2016-03-08 14:49:21.010244"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:21.011370"], ["updated_at", "2016-03-08 14:49:21.011370"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:21.013847"], ["updated_at", "2016-03-08 14:49:21.013847"]]  (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-03-08 14:49:21.015156"], ["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 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-03-08 14:49:21.022814"], ["updated_at", "2016-03-08 14:49:21.022814"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 128"], ["key", "Key 128"], ["secret", "Account 128"], ["canvas_account_id", "127"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:21.025978"], ["updated_at", "2016-03-08 14:49:21.025978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:21.027742"], ["updated_at", "2016-03-08 14:49:21.027742"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "46"], ["created_at", "2016-03-08 14:49:21.028881"], ["updated_at", "2016-03-08 14:49:21.028881"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:21.031261"], ["updated_at", "2016-03-08 14:49:21.031261"]]  (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-03-08 14:49:21.032698"], ["id", 1]]  (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 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.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", "2016-03-08 14:49:21.041974"], ["updated_at", "2016-03-08 14:49:21.041974"]]  (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.2ms) INSERT INTO "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-03-08 14:49:21.046308"], ["updated_at", "2016-03-08 14:49:21.046308"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2016-03-08 14:49:21.048133"], ["updated_at", "2016-03-08 14:49:21.048133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:21.049262"], ["updated_at", "2016-03-08 14:49:21.049262"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:21.052074"], ["updated_at", "2016-03-08 14:49:21.052074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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-03-08 14:49:21.054350"], ["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 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", "2016-03-08 14:49:21.062543"], ["updated_at", "2016-03-08 14:49:21.062543"]]  (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.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", "2016-03-08 14:49:21.066676"], ["updated_at", "2016-03-08 14:49:21.066676"]]  (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", "53"], ["created_at", "2016-03-08 14:49:21.069722"], ["updated_at", "2016-03-08 14:49:21.069722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "48"], ["created_at", "2016-03-08 14:49:21.071288"], ["updated_at", "2016-03-08 14:49:21.071288"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:21.074069"], ["updated_at", "2016-03-08 14:49:21.074069"]]  (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-03-08 14:49:21.075736"], ["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.2ms) 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.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 133"], ["key", "Key 133"], ["secret", "Account 133"], ["canvas_account_id", "132"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:21.084561"], ["updated_at", "2016-03-08 14:49:21.084561"]]  (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 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", "2016-03-08 14:49:21.089910"], ["updated_at", "2016-03-08 14:49:21.089910"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "54"], ["created_at", "2016-03-08 14:49:21.091858"], ["updated_at", "2016-03-08 14:49:21.091858"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:21.093555"], ["updated_at", "2016-03-08 14:49:21.093555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:21.096205"], ["updated_at", "2016-03-08 14:49:21.096205"]]  (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-03-08 14:49:21.097713"], ["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 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-03-08 14:49:21.105879"], ["updated_at", "2016-03-08 14:49:21.105879"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 136"], ["key", "Key 136"], ["secret", "Account 136"], ["canvas_account_id", "135"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-03-08 14:49:21.109026"], ["updated_at", "2016-03-08 14:49:21.109026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:21.110712"], ["updated_at", "2016-03-08 14:49:21.110712"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "50"], ["created_at", "2016-03-08 14:49:21.111816"], ["updated_at", "2016-03-08 14:49:21.111816"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:21.114266"], ["updated_at", "2016-03-08 14:49:21.114266"]]  (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-03-08 14:49:21.115678"], ["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 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", "2016-03-08 14:49:21.184560"], ["updated_at", "2016-03-08 14:49:21.184560"]]  (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.2ms) INSERT INTO "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-03-08 14:49:21.188958"], ["updated_at", "2016-03-08 14:49:21.188958"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "56"], ["created_at", "2016-03-08 14:49:21.191239"], ["updated_at", "2016-03-08 14:49:21.191239"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-03-08 14:49:21.192453"], ["updated_at", "2016-03-08 14:49:21.192453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:21.194950"], ["updated_at", "2016-03-08 14:49:21.194950"]]  (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-03-08 14:49:21.196254"], ["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.2ms) 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", "2016-03-08 14:49:21.204794"], ["updated_at", "2016-03-08 14:49:21.204794"]]  (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.1ms) 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", "2016-03-08 14:49:21.208518"], ["updated_at", "2016-03-08 14:49:21.208518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:21.210884"], ["updated_at", "2016-03-08 14:49:21.210884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "52"], ["created_at", "2016-03-08 14:49:21.212481"], ["updated_at", "2016-03-08 14:49:21.212481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:21.215665"], ["updated_at", "2016-03-08 14:49:21.215665"]]  (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-03-08 14:49:21.217605"], ["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 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-03-08 14:49:21.226981"], ["updated_at", "2016-03-08 14:49:21.226981"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-03-08 14:49:21.230219"], ["updated_at", "2016-03-08 14:49:21.230219"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-03-08 14:49:21.232086"], ["updated_at", "2016-03-08 14:49:21.232086"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "53"], ["created_at", "2016-03-08 14:49:21.233320"], ["updated_at", "2016-03-08 14:49:21.233320"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-03-08 14:49:21.236590"], ["updated_at", "2016-03-08 14:49:21.236590"]]  (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-03-08 14:49:21.238316"], ["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", "2016-03-08 14:49:21.241729"], ["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  (1.0ms) 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.3ms) Completed 200 OK in 25ms (Views: 25.2ms | ActiveRecord: 0.0ms)  (0.3ms) SELECT COUNT(*) FROM "coalescing_panda_canvas_api_auths"  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) 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 (12.2ms) 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", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["key", "Key 1"], ["name", "Account 1"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["secret", "Account 1"], ["settings", "---\n:base_url: foo.com\n"], ["updated_at", Tue, 08 Mar 2016 15:01:17 UTC +00:00]]  (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.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 (1.1ms) 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", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["expires_at", Tue, 08 Mar 2016 16:01:17 UTC +00:00], ["refresh_token", "token"], ["updated_at", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["user_id", "1"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Completed 200 OK in 52ms (Views: 0.6ms | ActiveRecord: 1.5ms) 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.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 (0.4ms) INSERT INTO "coalescing_panda_canvas_api_auths" ("created_at", "updated_at", "user_id") VALUES (?, ?, ?) [["created_at", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["updated_at", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["user_id", "a"]]  (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.6ms) 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" ("api_domain", "api_token", "created_at", "expires_at", "refresh_token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["api_domain", "test.example"], ["api_token", "token"], ["created_at", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["expires_at", Wed, 09 Mar 2016 15:01:17 UTC +00:00], ["refresh_token", "token"], ["updated_at", Tue, 08 Mar 2016 15:01:17 UTC +00:00], ["user_id", "abcd"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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.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 ActiveRecord::SchemaMigration Load (0.3ms) 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.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", "2016-05-13 16:13:29.667088"], ["updated_at", "2016-05-13 16:13:29.667088"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["email", "test1@test.com"], ["name", "Factory User 1"], ["canvas_user_id", "1"], ["created_at", "2016-05-13 16:13:29.701320"], ["updated_at", "2016-05-13 16:13:29.701320"]]  (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.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", "user_id", "api_domain", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["api_token", "foobar"], ["user_id", "1"], ["api_domain", "foo.com"], ["created_at", "2016-05-13 16:13:29.754742"], ["updated_at", "2016-05-13 16:13:29.754742"]]  (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 75ms (Views: 25.5ms | ActiveRecord: 1.0ms) CoalescingPanda::CanvasApiAuth Load (0.2ms) 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.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.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-05-13 16:13:29.863134"], ["updated_at", "2016-05-13 16:13:29.863134"]]  (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 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", "2016-05-13 16:13:29.875337"], ["updated_at", "2016-05-13 16:13:29.875337"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "coalescing_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-05-13 16:13:29.878498"], ["updated_at", "2016-05-13 16:13:29.878498"]]  (0.1ms) 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", "2016-05-13 16:13:29.881908"], ["updated_at", "2016-05-13 16:13:29.881908"]]  (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 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.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 4"], ["key", "Key 4"], ["secret", "Account 4"], ["canvas_account_id", "4"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:29.912064"], ["updated_at", "2016-05-13 16:13:29.912064"]]  (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.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 5"], ["key", "Key 5"], ["secret", "Account 5"], ["canvas_account_id", "5"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:29.917051"], ["updated_at", "2016-05-13 16:13:29.917051"]]  (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", "2"], ["created_at", "2016-05-13 16:13:29.920623"], ["updated_at", "2016-05-13 16:13:29.920623"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "2"], ["created_at", "2016-05-13 16:13:29.922773"], ["updated_at", "2016-05-13 16:13:29.922773"]]  (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.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 6' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 6' 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 6"], ["key", "Key 6"], ["secret", "Account 6"], ["canvas_account_id", "6"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:29.930201"], ["updated_at", "2016-05-13 16:13:29.930201"]]  (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.1ms) 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", "2016-05-13 16:13:29.934716"], ["updated_at", "2016-05-13 16:13:29.934716"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:29.936955"], ["updated_at", "2016-05-13 16:13:29.936955"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "3"], ["created_at", "2016-05-13 16:13:29.938379"], ["updated_at", "2016-05-13 16:13:29.938379"]]  (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.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 8"], ["key", "Key 8"], ["secret", "Account 8"], ["canvas_account_id", "8"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:29.958288"], ["updated_at", "2016-05-13 16:13:29.958288"]]  (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.2ms) INSERT INTO "coalescing_panda_lti_accounts" ("name", "key", "secret", "canvas_account_id", "oauth2_client_id", "oauth2_client_key", "settings", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Account 9"], ["key", "Key 9"], ["secret", "Account 9"], ["canvas_account_id", "9"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:29.962914"], ["updated_at", "2016-05-13 16:13:29.962914"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:29.965058"], ["updated_at", "2016-05-13 16:13:29.965058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "4"], ["created_at", "2016-05-13 16:13:29.966362"], ["updated_at", "2016-05-13 16:13:29.966362"]]  (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 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", "2016-05-13 16:13:29.974187"], ["updated_at", "2016-05-13 16:13:29.974187"]]  (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", "2016-05-13 16:13:29.978342"], ["updated_at", "2016-05-13 16:13:29.978342"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:29.980524"], ["updated_at", "2016-05-13 16:13:29.980524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "5"], ["created_at", "2016-05-13 16:13:29.981836"], ["updated_at", "2016-05-13 16:13:29.981836"]]  (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 12' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-05-13 16:13:29.987616"], ["updated_at", "2016-05-13 16:13:29.987616"]]  (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", "2016-05-13 16:13:29.991077"], ["updated_at", "2016-05-13 16:13:29.991077"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:29.993256"], ["updated_at", "2016-05-13 16:13:29.993256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "6"], ["created_at", "2016-05-13 16:13:29.994608"], ["updated_at", "2016-05-13 16:13:29.994608"]]  (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", "2016-05-13 16:13:29.996381"], ["updated_at", "2016-05-13 16:13:29.996381"]]  (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", "2016-05-13 16:13:30.003670"], ["updated_at", "2016-05-13 16:13:30.003670"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_assignments.coalescing_panda_course_id, coalescing_panda_assignments.canvas_assignment_id: INSERT INTO "coalescing_panda_assignments" ("name", "coalescing_panda_course_id", "canvas_assignment_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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.1ms) 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", "2016-05-13 16:13:30.009932"], ["updated_at", "2016-05-13 16:13:30.009932"]]  (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-05-13 16:13:30.013905"], ["updated_at", "2016-05-13 16:13:30.013905"]]  (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", "7"], ["created_at", "2016-05-13 16:13:30.016134"], ["updated_at", "2016-05-13 16:13:30.016134"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "7"], ["created_at", "2016-05-13 16:13:30.017655"], ["updated_at", "2016-05-13 16:13:30.017655"]]  (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", "2016-05-13 16:13:30.023705"], ["updated_at", "2016-05-13 16:13:30.023705"]]  (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.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.1ms) rollback transaction  (0.1ms) 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-05-13 16:13:30.096959"], ["updated_at", "2016-05-13 16:13:30.096959"]]  (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", "2016-05-13 16:13:30.099311"], ["updated_at", "2016-05-13 16:13:30.099311"]]  (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-05-13 16:13:30.100973"], ["updated_at", "2016-05-13 16:13:30.100973"]]  (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.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 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.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 16"], ["key", "Key 16"], ["secret", "Account 16"], ["canvas_account_id", "16"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:30.115204"], ["updated_at", "2016-05-13 16:13:30.115204"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-05-13 16:13:30.118555"], ["updated_at", "2016-05-13 16:13:30.118555"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "8"], ["created_at", "2016-05-13 16:13:30.120354"], ["updated_at", "2016-05-13 16:13:30.120354"]]  (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 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-05-13 16:13:30.126130"], ["updated_at", "2016-05-13 16:13:30.126130"]]  (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", "2016-05-13 16:13:30.129849"], ["updated_at", "2016-05-13 16:13:30.129849"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:30.131713"], ["updated_at", "2016-05-13 16:13:30.131713"]]  (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 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", "2016-05-13 16:13:30.136186"], ["updated_at", "2016-05-13 16:13:30.136186"]]  (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.0ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 21' 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 21"], ["key", "Key 21"], ["secret", "Account 21"], ["canvas_account_id", "21"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:30.140573"], ["updated_at", "2016-05-13 16:13:30.140573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "10"], ["created_at", "2016-05-13 16:13:30.143057"], ["updated_at", "2016-05-13 16:13:30.143057"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-05-13 16:13:30.144327"], ["updated_at", "2016-05-13 16:13:30.144327"]]  (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", "2016-05-13 16:13:30.147534"], ["updated_at", "2016-05-13 16:13:30.147534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.149142"], ["updated_at", "2016-05-13 16:13:30.149142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 2], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-05-13 16:13:30.150259"], ["updated_at", "2016-05-13 16:13:30.150259"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_lti_account_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-05-13 16:13:30.154434"], ["updated_at", "2016-05-13 16:13:30.154434"]]  (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", "2016-05-13 16:13:30.156110"], ["updated_at", "2016-05-13 16:13:30.156110"]]  (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", "2016-05-13 16:13:30.159078"], ["updated_at", "2016-05-13 16:13:30.159078"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "1"], ["created_at", "2016-05-13 16:13:30.160989"], ["updated_at", "2016-05-13 16:13:30.160989"]]  (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.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", "2016-05-13 16:13:30.163880"], ["updated_at", "2016-05-13 16:13:30.163880"]]  (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", "2016-05-13 16:13:30.165731"], ["updated_at", "2016-05-13 16:13:30.165731"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_courses.coalescing_panda_term_id, coalescing_panda_courses.canvas_course_id: INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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", "2016-05-13 16:13:30.170641"], ["updated_at", "2016-05-13 16:13:30.170641"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.1ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."key" = 'Key 27' 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 27"], ["key", "Key 27"], ["secret", "Account 27"], ["canvas_account_id", "27"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:30.173804"], ["updated_at", "2016-05-13 16:13:30.173804"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:30.175905"], ["updated_at", "2016-05-13 16:13:30.175905"]]  (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.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", "2016-05-13 16:13:30.188666"], ["updated_at", "2016-05-13 16:13:30.188666"]]  (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", "test2@test.com"], ["name", "Factory User 2"], ["canvas_user_id", "2"], ["created_at", "2016-05-13 16:13:30.191742"], ["updated_at", "2016-05-13 16:13:30.191742"]]  (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", "2016-05-13 16:13:30.201304"], ["updated_at", "2016-05-13 16:13:30.201304"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-05-13 16:13:30.204455"], ["updated_at", "2016-05-13 16:13:30.204455"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.206117"], ["updated_at", "2016-05-13 16:13:30.206117"]]  (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", "10"], ["created_at", "2016-05-13 16:13:30.207820"], ["updated_at", "2016-05-13 16:13:30.207820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_course_id", 1], ["canvas_section_id", "1"], ["created_at", "2016-05-13 16:13:30.209922"], ["updated_at", "2016-05-13 16:13:30.209922"]]  (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 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.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 31"], ["key", "Key 31"], ["secret", "Account 31"], ["canvas_account_id", "31"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:30.218013"], ["updated_at", "2016-05-13 16:13:30.218013"]]  (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", "2016-05-13 16:13:30.220405"], ["updated_at", "2016-05-13 16:13:30.220405"]]  (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", "2016-05-13 16:13:30.223465"], ["updated_at", "2016-05-13 16:13:30.223465"]]  (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", "2016-05-13 16:13:30.226884"], ["updated_at", "2016-05-13 16:13:30.226884"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.228600"], ["updated_at", "2016-05-13 16:13:30.228600"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "11"], ["created_at", "2016-05-13 16:13:30.229893"], ["updated_at", "2016-05-13 16:13:30.229893"]]  (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-05-13 16:13:30.231193"], ["updated_at", "2016-05-13 16:13:30.231193"]]  (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.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 34"], ["key", "Key 34"], ["secret", "Account 34"], ["canvas_account_id", "34"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:30.238558"], ["updated_at", "2016-05-13 16:13:30.238558"]]  (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", "test4@test.com"], ["name", "Factory User 4"], ["canvas_user_id", "4"], ["created_at", "2016-05-13 16:13:30.242242"], ["updated_at", "2016-05-13 16:13:30.242242"]]  (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.1ms) 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-05-13 16:13:30.246713"], ["updated_at", "2016-05-13 16:13:30.246713"]]  (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.1ms) 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-05-13 16:13:30.250389"], ["updated_at", "2016-05-13 16:13:30.250389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.252339"], ["updated_at", "2016-05-13 16:13:30.252339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:30.253607"], ["updated_at", "2016-05-13 16:13:30.253607"]]  (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-05-13 16:13:30.254823"], ["updated_at", "2016-05-13 16:13:30.254823"]]  (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", "2016-05-13 16:13:30.259974"], ["updated_at", "2016-05-13 16:13:30.259974"]]  (0.1ms) 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-05-13 16:13:30.262588"], ["updated_at", "2016-05-13 16:13:30.262588"]]  (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.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", "2016-05-13 16:13:30.266207"], ["updated_at", "2016-05-13 16:13:30.266207"]]  (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", "2016-05-13 16:13:30.269673"], ["updated_at", "2016-05-13 16:13:30.269673"]]  (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", "17"], ["created_at", "2016-05-13 16:13:30.271534"], ["updated_at", "2016-05-13 16:13:30.271534"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "13"], ["created_at", "2016-05-13 16:13:30.272809"], ["updated_at", "2016-05-13 16:13:30.272809"]]  (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-05-13 16:13:30.274040"], ["updated_at", "2016-05-13 16:13:30.274040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_user_id", 1], ["coalescing_panda_section_id", 1], ["canvas_enrollment_id", "3"], ["enrollment_type", "StudentEnrollment"], ["created_at", "2016-05-13 16:13:30.275800"], ["updated_at", "2016-05-13 16:13:30.275800"]]  (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", "2016-05-13 16:13:30.278554"], ["updated_at", "2016-05-13 16:13:30.278554"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_enrollments.coalescing_panda_user_id, coalescing_panda_enrollments.coalescing_panda_section_id, coalescing_panda_enrollments.enrollment_type: INSERT INTO "coalescing_panda_enrollments" ("coalescing_panda_user_id", "coalescing_panda_section_id", "canvas_enrollment_id", "enrollment_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (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 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-05-13 16:13:30.284093"], ["updated_at", "2016-05-13 16:13:30.284093"]]  (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-05-13 16:13:30.286319"], ["updated_at", "2016-05-13 16:13:30.286319"]]  (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", "2016-05-13 16:13:30.289321"], ["updated_at", "2016-05-13 16:13:30.289321"]]  (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", "2016-05-13 16:13:30.293270"], ["updated_at", "2016-05-13 16:13:30.293270"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.294883"], ["updated_at", "2016-05-13 16:13:30.294883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:30.296089"], ["updated_at", "2016-05-13 16:13:30.296089"]]  (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-05-13 16:13:30.297270"], ["updated_at", "2016-05-13 16:13:30.297270"]]  (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-05-13 16:13:30.298901"], ["updated_at", "2016-05-13 16:13:30.298901"]]  (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-05-13 16:13:30.300615"], ["updated_at", "2016-05-13 16:13:30.300615"]]  (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", "2016-05-13 16:13:30.305446"], ["updated_at", "2016-05-13 16:13:30.305446"]]  (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-05-13 16:13:30.307677"], ["updated_at", "2016-05-13 16:13:30.307677"]]  (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.1ms) 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-05-13 16:13:30.310924"], ["updated_at", "2016-05-13 16:13:30.310924"]]  (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 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-05-13 16:13:30.366311"], ["updated_at", "2016-05-13 16:13:30.366311"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.368233"], ["updated_at", "2016-05-13 16:13:30.368233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "15"], ["created_at", "2016-05-13 16:13:30.369472"], ["updated_at", "2016-05-13 16:13:30.369472"]]  (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-05-13 16:13:30.370661"], ["updated_at", "2016-05-13 16:13:30.370661"]]  (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) 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 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.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 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-05-13 16:13:30.384601"], ["updated_at", "2016-05-13 16:13:30.384601"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-05-13 16:13:30.388190"], ["updated_at", "2016-05-13 16:13:30.388190"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "20"], ["created_at", "2016-05-13 16:13:30.390292"], ["updated_at", "2016-05-13 16:13:30.390292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:30.391673"], ["updated_at", "2016-05-13 16:13:30.391673"]]  (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 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", "2016-05-13 16:13:30.398114"], ["updated_at", "2016-05-13 16:13:30.398114"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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.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-05-13 16:13:30.401546"], ["updated_at", "2016-05-13 16:13:30.401546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "21"], ["created_at", "2016-05-13 16:13:30.403880"], ["updated_at", "2016-05-13 16:13:30.403880"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:30.405446"], ["updated_at", "2016-05-13 16:13:30.405446"]]  (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", "2016-05-13 16:13:30.411171"], ["updated_at", "2016-05-13 16:13:30.411171"]]  (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 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.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 52"], ["key", "Key 52"], ["secret", "Account 52"], ["canvas_account_id", "51"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:30.414856"], ["updated_at", "2016-05-13 16:13:30.414856"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "22"], ["created_at", "2016-05-13 16:13:30.416909"], ["updated_at", "2016-05-13 16:13:30.416909"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:30.418117"], ["updated_at", "2016-05-13 16:13:30.418117"]]  (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-05-13 16:13:30.419718"], ["updated_at", "2016-05-13 16:13:30.419718"]]  (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-05-13 16:13:30.421368"], ["updated_at", "2016-05-13 16:13:30.421368"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_sections.coalescing_panda_course_id, coalescing_panda_sections.canvas_section_id: INSERT INTO "coalescing_panda_sections" ("coalescing_panda_course_id", "canvas_section_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (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 53' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-05-13 16:13:30.427648"], ["updated_at", "2016-05-13 16:13:30.427648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-05-13 16:13:30.430971"], ["updated_at", "2016-05-13 16:13:30.430971"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "23"], ["created_at", "2016-05-13 16:13:30.432892"], ["updated_at", "2016-05-13 16:13:30.432892"]]  (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", "19"], ["created_at", "2016-05-13 16:13:30.434390"], ["updated_at", "2016-05-13 16:13:30.434390"]]  (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", "2016-05-13 16:13:30.447209"], ["updated_at", "2016-05-13 16:13:30.447209"]]  (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", "2016-05-13 16:13:30.449514"], ["updated_at", "2016-05-13 16:13:30.449514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-05-13 16:13:30.453046"], ["updated_at", "2016-05-13 16:13:30.453046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-05-13 16:13:30.455844"], ["updated_at", "2016-05-13 16:13:30.455844"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.457387"], ["updated_at", "2016-05-13 16:13:30.457387"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:30.458693"], ["updated_at", "2016-05-13 16:13:30.458693"]]  (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", "2016-05-13 16:13:30.460115"], ["updated_at", "2016-05-13 16:13:30.460115"]]  (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 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.2ms) INSERT INTO "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-05-13 16:13:30.468370"], ["updated_at", "2016-05-13 16:13:30.468370"]]  (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-05-13 16:13:30.470952"], ["updated_at", "2016-05-13 16:13:30.470952"]]  (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.1ms) 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-05-13 16:13:30.474712"], ["updated_at", "2016-05-13 16:13:30.474712"]]  (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.1ms) 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", "2016-05-13 16:13:30.478935"], ["updated_at", "2016-05-13 16:13:30.478935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.481216"], ["updated_at", "2016-05-13 16:13:30.481216"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "21"], ["created_at", "2016-05-13 16:13:30.482813"], ["updated_at", "2016-05-13 16:13:30.482813"]]  (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-05-13 16:13:30.484341"], ["updated_at", "2016-05-13 16:13:30.484341"]]  (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", "2016-05-13 16:13:30.490821"], ["updated_at", "2016-05-13 16:13:30.490821"]]  (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-05-13 16:13:30.493155"], ["updated_at", "2016-05-13 16:13:30.493155"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-05-13 16:13:30.496173"], ["updated_at", "2016-05-13 16:13:30.496173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-05-13 16:13:30.499090"], ["updated_at", "2016-05-13 16:13:30.499090"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.500699"], ["updated_at", "2016-05-13 16:13:30.500699"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:30.502018"], ["updated_at", "2016-05-13 16:13:30.502018"]]  (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-05-13 16:13:30.503623"], ["updated_at", "2016-05-13 16:13:30.503623"]]  (0.0ms) RELEASE 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 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.2ms) INSERT INTO "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-05-13 16:13:30.509889"], ["updated_at", "2016-05-13 16:13:30.509889"]]  (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", "2016-05-13 16:13:30.512297"], ["updated_at", "2016-05-13 16:13:30.512297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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-05-13 16:13:30.515339"], ["updated_at", "2016-05-13 16:13:30.515339"]]  (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", "2016-05-13 16:13:30.518580"], ["updated_at", "2016-05-13 16:13:30.518580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.520677"], ["updated_at", "2016-05-13 16:13:30.520677"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "23"], ["created_at", "2016-05-13 16:13:30.522176"], ["updated_at", "2016-05-13 16:13:30.522176"]]  (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-05-13 16:13:30.523648"], ["updated_at", "2016-05-13 16:13:30.523648"]]  (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-05-13 16:13:30.525802"], ["updated_at", "2016-05-13 16:13:30.525802"]]  (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", "2016-05-13 16:13:30.528244"], ["updated_at", "2016-05-13 16:13:30.528244"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_submissions.coalescing_panda_user_id, coalescing_panda_submissions.coalescing_panda_assignment_id, coalescing_panda_submissions.canvas_submission_id: INSERT INTO "coalescing_panda_submissions" ("coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)  (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.1ms) 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", "2016-05-13 16:13:30.534664"], ["updated_at", "2016-05-13 16:13:30.534664"]]  (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-05-13 16:13:30.537122"], ["updated_at", "2016-05-13 16:13:30.537122"]]  (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", "2016-05-13 16:13:30.540238"], ["updated_at", "2016-05-13 16:13:30.540238"]]  (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.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", "2016-05-13 16:13:30.543620"], ["updated_at", "2016-05-13 16:13:30.543620"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.545524"], ["updated_at", "2016-05-13 16:13:30.545524"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:30.547028"], ["updated_at", "2016-05-13 16:13:30.547028"]]  (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-05-13 16:13:30.548487"], ["updated_at", "2016-05-13 16:13:30.548487"]]  (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-05-13 16:13:30.550327"], ["updated_at", "2016-05-13 16:13:30.550327"]]  (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-05-13 16:13:30.552131"], ["updated_at", "2016-05-13 16:13:30.552131"]]  (0.0ms) RELEASE 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 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", "2016-05-13 16:13:30.558262"], ["updated_at", "2016-05-13 16:13:30.558262"]]  (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", "2016-05-13 16:13:30.560791"], ["updated_at", "2016-05-13 16:13:30.560791"]]  (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 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", "2016-05-13 16:13:30.565346"], ["updated_at", "2016-05-13 16:13:30.565346"]]  (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.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-05-13 16:13:30.569356"], ["updated_at", "2016-05-13 16:13:30.569356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.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-05-13 16:13:30.571593"], ["updated_at", "2016-05-13 16:13:30.571593"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "25"], ["created_at", "2016-05-13 16:13:30.573145"], ["updated_at", "2016-05-13 16:13:30.573145"]]  (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-05-13 16:13:30.574722"], ["updated_at", "2016-05-13 16:13:30.574722"]]  (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-05-13 16:13:30.580973"], ["updated_at", "2016-05-13 16:13:30.580973"]]  (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-05-13 16:13:30.586172"], ["updated_at", "2016-05-13 16:13:30.586172"]]  (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", 1], ["canvas_term_id", "1"], ["created_at", "2016-05-13 16:13:30.588421"], ["updated_at", "2016-05-13 16:13:30.588421"]]  (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-05-13 16:13:30.590884"], ["updated_at", "2016-05-13 16:13:30.590884"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_terms.canvas_term_id, coalescing_panda_terms.coalescing_panda_lti_account_id: INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) 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) SAVEPOINT 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", "2016-05-13 16:13:30.598962"], ["updated_at", "2016-05-13 16:13:30.598962"]]  (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.2ms) INSERT INTO "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-05-13 16:13:30.605669"], ["updated_at", "2016-05-13 16:13:30.605669"]]  (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.2ms) SELECT 1 AS one FROM "coalescing_panda_lti_accounts" WHERE "coalescing_panda_lti_accounts"."name" = 'Account 77' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.2ms) 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-05-13 16:13:30.613271"], ["updated_at", "2016-05-13 16:13:30.613271"]]  (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", "2016-05-13 16:13:30.616637"], ["updated_at", "2016-05-13 16:13:30.616637"]]  (0.1ms) 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-05-13 16:13:30.619610"], ["updated_at", "2016-05-13 16:13:30.619610"]] SQLite3::ConstraintException: UNIQUE constraint failed: coalescing_panda_users.coalescing_panda_lti_account_id, coalescing_panda_users.canvas_user_id: INSERT INTO "coalescing_panda_users" ("coalescing_panda_lti_account_id", "email", "name", "canvas_user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)  (0.1ms) ROLLBACK TO 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 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.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", "2016-05-13 16:13:30.625919"], ["updated_at", "2016-05-13 16:13:30.625919"]]  (0.0ms) 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 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", "2016-05-13 16:13:30.635474"], ["updated_at", "2016-05-13 16:13:30.635474"]]  (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 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.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 80"], ["key", "Key 80"], ["secret", "Account 80"], ["canvas_account_id", "79"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:30.639109"], ["updated_at", "2016-05-13 16:13:30.639109"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "31"], ["created_at", "2016-05-13 16:13:30.641189"], ["updated_at", "2016-05-13 16:13:30.641189"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:30.642686"], ["updated_at", "2016-05-13 16:13:30.642686"]]  (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", "2016-05-13 16:13:30.717629"], ["updated_at", "2016-05-13 16:13:30.717629"]]  (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-05-13 16:13:30.719679"], ["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.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-05-13 16:13:30.729154"], ["updated_at", "2016-05-13 16:13:30.729154"]]  (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 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.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", "2016-05-13 16:13:30.733407"], ["updated_at", "2016-05-13 16:13:30.733407"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "32"], ["created_at", "2016-05-13 16:13:30.735787"], ["updated_at", "2016-05-13 16:13:30.735787"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:30.737389"], ["updated_at", "2016-05-13 16:13:30.737389"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:30.740431"], ["updated_at", "2016-05-13 16:13:30.740431"]]  (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-05-13 16:13:30.742005"], ["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 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-05-13 16:13:30.750061"], ["updated_at", "2016-05-13 16:13:30.750061"]]  (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 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.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 84"], ["key", "Key 84"], ["secret", "Account 84"], ["canvas_account_id", "83"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:30.753761"], ["updated_at", "2016-05-13 16:13:30.753761"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:30.755781"], ["updated_at", "2016-05-13 16:13:30.755781"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "28"], ["created_at", "2016-05-13 16:13:30.756978"], ["updated_at", "2016-05-13 16:13:30.756978"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:30.760131"], ["updated_at", "2016-05-13 16:13:30.760131"]]  (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-05-13 16:13:30.762337"], ["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", "2016-05-13 16:13:30.779414"], ["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-05-13 16:13:30.784377"], ["updated_at", "2016-05-13 16:13:30.784377"]]  (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-05-13 16:13:30.786862"], ["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", "2016-05-13 16:13:30.790741"], ["updated_at", "2016-05-13 16:13:30.790741"]]  (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-05-13 16:13:30.792790"], ["updated_at", "2016-05-13 16:13:30.792790"]]  (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", "2016-05-13 16:13:30.794491"], ["updated_at", "2016-05-13 16:13:30.794491"]]  (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" IS NOT NULL) [["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", "2016-05-13 16:13:30.807924"], ["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.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.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", "2016-05-13 16:13:30.826678"], ["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.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", "2016-05-13 16:13:30.831382"], ["updated_at", "2016-05-13 16:13:30.831382"]]  (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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 50.0], ["updated_at", "2016-05-13 16:13:30.835212"], ["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.5ms) SELECT "coalescing_panda_group_categories".* FROM "coalescing_panda_group_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.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.3ms) 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.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]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 62.5], ["updated_at", "2016-05-13 16:13:30.856432"], ["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.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-05-13 16:13:30.860268"], ["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.1ms) 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", "2016-05-13 16:13:30.929460"], ["updated_at", "2016-05-13 16:13:30.929460"]]  (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-05-13 16:13:30.933103"], ["updated_at", "2016-05-13 16:13:30.933103"]]  (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.1ms) UPDATE "coalescing_panda_canvas_batches" SET "percent_complete" = ?, "updated_at" = ? WHERE "coalescing_panda_canvas_batches"."id" = ? [["percent_complete", 87.5], ["updated_at", "2016-05-13 16:13:30.935001"], ["id", 1]]  (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.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" = ? 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", "2016-05-13 16:13:30.949482"], ["updated_at", "2016-05-13 16:13:30.949482"]]  (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", "2016-05-13 16:13:30.953205"], ["updated_at", "2016-05-13 16:13:30.953205"]]  (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 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, 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-05-13 16:13:30.959541"], ["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-05-13 16:13:30.960816"], ["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) 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 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", "2016-05-13 16:13:30.969318"], ["updated_at", "2016-05-13 16:13:30.969318"]]  (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 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.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-05-13 16:13:30.972446"], ["updated_at", "2016-05-13 16:13:30.972446"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "34"], ["created_at", "2016-05-13 16:13:30.974398"], ["updated_at", "2016-05-13 16:13:30.974398"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:30.975604"], ["updated_at", "2016-05-13 16:13:30.975604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:30.978415"], ["updated_at", "2016-05-13 16:13:30.978415"]]  (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-05-13 16:13:30.980192"], ["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-05-13 16:13:30.983122"], ["updated_at", "2016-05-13 16:13:30.983122"]]  (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]]  (0.1ms) 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 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.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 87"], ["key", "Key 87"], ["secret", "Account 87"], ["canvas_account_id", "86"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:30.992605"], ["updated_at", "2016-05-13 16:13:30.992605"]]  (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 88' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-05-13 16:13:30.997770"], ["updated_at", "2016-05-13 16:13:30.997770"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "35"], ["created_at", "2016-05-13 16:13:31.000220"], ["updated_at", "2016-05-13 16:13:31.000220"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:31.001572"], ["updated_at", "2016-05-13 16:13:31.001572"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.004729"], ["updated_at", "2016-05-13 16:13:31.004729"]]  (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-05-13 16:13:31.006364"], ["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", "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-05-13 16:13:31.009441"], ["updated_at", "2016-05-13 16:13:31.009441"]]  (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-05-13 16:13:31.011650"], ["updated_at", "2016-05-13 16:13:31.011650"]]  (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-05-13 16:13:31.013526"], ["updated_at", "2016-05-13 16:13:31.013526"]]  (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" IS NOT NULL) [["coalescing_panda_course_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "coalescing_panda_users"  (0.7ms) rollback transaction  (0.0ms) begin transaction CoalescingPanda::Enrollment Load (0.2ms) 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 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", "2016-05-13 16:13:31.022863"], ["updated_at", "2016-05-13 16:13:31.022863"]]  (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.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", "2016-05-13 16:13:31.026217"], ["updated_at", "2016-05-13 16:13:31.026217"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "36"], ["created_at", "2016-05-13 16:13:31.028252"], ["updated_at", "2016-05-13 16:13:31.028252"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:31.029574"], ["updated_at", "2016-05-13 16:13:31.029574"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.032098"], ["updated_at", "2016-05-13 16:13:31.032098"]]  (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-05-13 16:13:31.033593"], ["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-05-13 16:13:31.035883"], ["updated_at", "2016-05-13 16:13:31.035883"]]  (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-05-13 16:13:31.038150"], ["updated_at", "2016-05-13 16:13:31.038150"]]  (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-05-13 16:13:31.039783"], ["updated_at", "2016-05-13 16:13:31.039783"]]  (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", "2016-05-13 16:13:31.041364"], ["updated_at", "2016-05-13 16:13:31.041364"]]  (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" IS NOT NULL) [["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]]  (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 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-05-13 16:13:31.062379"], ["updated_at", "2016-05-13 16:13:31.062379"]]  (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 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-05-13 16:13:31.066170"], ["updated_at", "2016-05-13 16:13:31.066170"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:31.068969"], ["updated_at", "2016-05-13 16:13:31.068969"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "32"], ["created_at", "2016-05-13 16:13:31.070552"], ["updated_at", "2016-05-13 16:13:31.070552"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.073971"], ["updated_at", "2016-05-13 16:13:31.073971"]]  (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-05-13 16:13:31.076235"], ["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.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", "2016-05-13 16:13:31.084359"], ["updated_at", "2016-05-13 16:13:31.084359"]]  (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.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.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", "2016-05-13 16:13:31.096615"], ["updated_at", "2016-05-13 16:13:31.096615"]]  (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 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-05-13 16:13:31.100808"], ["updated_at", "2016-05-13 16:13:31.100808"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "38"], ["created_at", "2016-05-13 16:13:31.102685"], ["updated_at", "2016-05-13 16:13:31.102685"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:31.103867"], ["updated_at", "2016-05-13 16:13:31.103867"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.106402"], ["updated_at", "2016-05-13 16:13:31.106402"]]  (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-05-13 16:13:31.107768"], ["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-05-13 16:13:31.110034"], ["updated_at", "2016-05-13 16:13:31.110034"]]  (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.2ms) 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 95' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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", "2016-05-13 16:13:31.189544"], ["updated_at", "2016-05-13 16:13:31.189544"]]  (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.1ms) 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", "2016-05-13 16:13:31.194569"], ["updated_at", "2016-05-13 16:13:31.194569"]]  (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", "2016-05-13 16:13:31.197113"], ["updated_at", "2016-05-13 16:13:31.197113"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "34"], ["created_at", "2016-05-13 16:13:31.198514"], ["updated_at", "2016-05-13 16:13:31.198514"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.201405"], ["updated_at", "2016-05-13 16:13:31.201405"]]  (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", "2016-05-13 16:13:31.203302"], ["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-05-13 16:13:31.205975"], ["updated_at", "2016-05-13 16:13:31.205975"]]  (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.6ms) 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 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", "2016-05-13 16:13:31.213976"], ["updated_at", "2016-05-13 16:13:31.213976"]]  (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", "2016-05-13 16:13:31.217010"], ["updated_at", "2016-05-13 16:13:31.217010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:31.219489"], ["updated_at", "2016-05-13 16:13:31.219489"]]  (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", "35"], ["created_at", "2016-05-13 16:13:31.220891"], ["updated_at", "2016-05-13 16:13:31.220891"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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", "2016-05-13 16:13:31.224067"], ["updated_at", "2016-05-13 16:13:31.224067"]]  (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-05-13 16:13:31.226203"], ["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-05-13 16:13:31.229130"], ["updated_at", "2016-05-13 16:13:31.229130"]]  (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-05-13 16:13:31.231703"], ["updated_at", "2016-05-13 16:13:31.231703"]]  (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-05-13 16:13:31.233455"], ["updated_at", "2016-05-13 16:13:31.233455"]]  (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", "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-05-13 16:13:31.235215"], ["updated_at", "2016-05-13 16:13:31.235215"]]  (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" IS NOT NULL) [["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.1ms) 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", "2016-05-13 16:13:31.270300"], ["updated_at", "2016-05-13 16:13:31.270300"]]  (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-05-13 16:13:31.273972"], ["updated_at", "2016-05-13 16:13:31.273972"]]  (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", "2016-05-13 16:13:31.277657"], ["updated_at", "2016-05-13 16:13:31.277657"]]  (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", "2016-05-13 16:13:31.281885"], ["updated_at", "2016-05-13 16:13:31.281885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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", "2016-05-13 16:13:31.290917"], ["updated_at", "2016-05-13 16:13:31.290917"]]  (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-05-13 16:13:31.294928"], ["updated_at", "2016-05-13 16:13:31.294928"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:31.297526"], ["updated_at", "2016-05-13 16:13:31.297526"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "36"], ["created_at", "2016-05-13 16:13:31.298983"], ["updated_at", "2016-05-13 16:13:31.298983"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.302056"], ["updated_at", "2016-05-13 16:13:31.302056"]]  (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-05-13 16:13:31.303518"], ["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-05-13 16:13:31.305751"], ["updated_at", "2016-05-13 16:13:31.305751"]]  (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-05-13 16:13:31.309275"], ["updated_at", "2016-05-13 16:13:31.309275"]]  (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-05-13 16:13:31.311573"], ["updated_at", "2016-05-13 16:13:31.311573"]]  (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.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", "2016-05-13 16:13:31.320897"], ["updated_at", "2016-05-13 16:13:31.320897"]]  (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-05-13 16:13:31.325478"], ["updated_at", "2016-05-13 16:13:31.325478"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:31.327937"], ["updated_at", "2016-05-13 16:13:31.327937"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "37"], ["created_at", "2016-05-13 16:13:31.329329"], ["updated_at", "2016-05-13 16:13:31.329329"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.331889"], ["updated_at", "2016-05-13 16:13:31.331889"]]  (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-05-13 16:13:31.333321"], ["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-05-13 16:13:31.335519"], ["updated_at", "2016-05-13 16:13:31.335519"]]  (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.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-05-13 16:13:31.337813"], ["updated_at", "2016-05-13 16:13:31.337813"]]  (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-05-13 16:13:31.339465"], ["updated_at", "2016-05-13 16:13:31.339465"]]  (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", "2016-05-13 16:13:31.341020"], ["updated_at", "2016-05-13 16:13:31.341020"]]  (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" IS NOT NULL) [["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", "2016-05-13 16:13:31.356734"], ["updated_at", "2016-05-13 16:13:31.356734"]]  (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-05-13 16:13:31.358993"], ["updated_at", "2016-05-13 16:13:31.358993"]]  (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.0ms) 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 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", "2016-05-13 16:13:31.369965"], ["updated_at", "2016-05-13 16:13:31.369965"]]  (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.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", "2016-05-13 16:13:31.373297"], ["updated_at", "2016-05-13 16:13:31.373297"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "43"], ["created_at", "2016-05-13 16:13:31.375454"], ["updated_at", "2016-05-13 16:13:31.375454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:31.376648"], ["updated_at", "2016-05-13 16:13:31.376648"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.379256"], ["updated_at", "2016-05-13 16:13:31.379256"]]  (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-05-13 16:13:31.380625"], ["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-05-13 16:13:31.384376"], ["updated_at", "2016-05-13 16:13:31.384376"]]  (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", "moderator", "workflow_state", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_group_membership_id", "14"], ["moderator", "f"], ["workflow_state", "accepted"], ["created_at", "2016-05-13 16:13:31.387013"], ["updated_at", "2016-05-13 16:13:31.387013"]]  (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"."id" NOT IN (1, 2)) [["context_id", 1], ["context_type", "CoalescingPanda::Course"]]  (0.0ms) SELECT COUNT(*) FROM "coalescing_panda_group_memberships"  (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 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.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", "2016-05-13 16:13:31.397209"], ["updated_at", "2016-05-13 16:13:31.397209"]]  (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 106' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-05-13 16:13:31.458164"], ["updated_at", "2016-05-13 16:13:31.458164"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:31.460533"], ["updated_at", "2016-05-13 16:13:31.460533"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "39"], ["created_at", "2016-05-13 16:13:31.461907"], ["updated_at", "2016-05-13 16:13:31.461907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.464739"], ["updated_at", "2016-05-13 16:13:31.464739"]]  (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-05-13 16:13:31.466220"], ["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 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", "2016-05-13 16:13:31.473949"], ["updated_at", "2016-05-13 16:13:31.473949"]]  (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.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 108"], ["key", "Key 108"], ["secret", "Account 108"], ["canvas_account_id", "107"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:31.477931"], ["updated_at", "2016-05-13 16:13:31.477931"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "45"], ["created_at", "2016-05-13 16:13:31.480582"], ["updated_at", "2016-05-13 16:13:31.480582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:31.482405"], ["updated_at", "2016-05-13 16:13:31.482405"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.486095"], ["updated_at", "2016-05-13 16:13:31.486095"]]  (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-05-13 16:13:31.488198"], ["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 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-05-13 16:13:31.497183"], ["updated_at", "2016-05-13 16:13:31.497183"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT 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", "2016-05-13 16:13:31.500312"], ["updated_at", "2016-05-13 16:13:31.500312"]]  (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", "46"], ["created_at", "2016-05-13 16:13:31.502839"], ["updated_at", "2016-05-13 16:13:31.502839"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "41"], ["created_at", "2016-05-13 16:13:31.504484"], ["updated_at", "2016-05-13 16:13:31.504484"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.508046"], ["updated_at", "2016-05-13 16:13:31.508046"]]  (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-05-13 16:13:31.510205"], ["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 111' LIMIT 1 CoalescingPanda::LtiAccount Exists (0.1ms) 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-05-13 16:13:31.519025"], ["updated_at", "2016-05-13 16:13:31.519025"]]  (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.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 112"], ["key", "Key 112"], ["secret", "Account 112"], ["canvas_account_id", "111"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:31.522833"], ["updated_at", "2016-05-13 16:13:31.522833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "47"], ["created_at", "2016-05-13 16:13:31.525285"], ["updated_at", "2016-05-13 16:13:31.525285"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:31.526731"], ["updated_at", "2016-05-13 16:13:31.526731"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.530280"], ["updated_at", "2016-05-13 16:13:31.530280"]]  (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-05-13 16:13:31.532087"], ["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 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-05-13 16:13:31.541274"], ["updated_at", "2016-05-13 16:13:31.541274"]]  (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", "2016-05-13 16:13:31.545194"], ["updated_at", "2016-05-13 16:13:31.545194"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:31.547609"], ["updated_at", "2016-05-13 16:13:31.547609"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "43"], ["created_at", "2016-05-13 16:13:31.549024"], ["updated_at", "2016-05-13 16:13:31.549024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.551750"], ["updated_at", "2016-05-13 16:13:31.551750"]]  (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", "2016-05-13 16:13:31.553570"], ["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 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-05-13 16:13:31.562541"], ["updated_at", "2016-05-13 16:13:31.562541"]]  (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.2ms) INSERT INTO "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-05-13 16:13:31.566049"], ["updated_at", "2016-05-13 16:13:31.566049"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "49"], ["created_at", "2016-05-13 16:13:31.567823"], ["updated_at", "2016-05-13 16:13:31.567823"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:31.569045"], ["updated_at", "2016-05-13 16:13:31.569045"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.571692"], ["updated_at", "2016-05-13 16:13:31.571692"]]  (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-05-13 16:13:31.573279"], ["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 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-05-13 16:13:31.582401"], ["updated_at", "2016-05-13 16:13:31.582401"]]  (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", "2016-05-13 16:13:31.585904"], ["updated_at", "2016-05-13 16:13:31.585904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_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-05-13 16:13:31.588315"], ["updated_at", "2016-05-13 16:13:31.588315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_course_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["coalescing_panda_lti_account_id", 1], ["coalescing_panda_term_id", 1], ["name", "Test Course"], ["canvas_course_id", "45"], ["created_at", "2016-05-13 16:13:31.589973"], ["updated_at", "2016-05-13 16:13:31.589973"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.593560"], ["updated_at", "2016-05-13 16:13:31.593560"]]  (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-05-13 16:13:31.595361"], ["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 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-05-13 16:13:31.602917"], ["updated_at", "2016-05-13 16:13:31.602917"]]  (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.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 120"], ["key", "Key 120"], ["secret", "Account 120"], ["canvas_account_id", "119"], ["oauth2_client_id", "1234"], ["oauth2_client_key", "thisisadeveloperkey"], ["settings", "---\n:base_url: http://localhost:3000\n:account_admin_api_token: 9q2083uy4poiahjfgpoawy\n"], ["created_at", "2016-05-13 16:13:31.606636"], ["updated_at", "2016-05-13 16:13:31.606636"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "51"], ["created_at", "2016-05-13 16:13:31.609151"], ["updated_at", "2016-05-13 16:13:31.609151"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:31.610440"], ["updated_at", "2016-05-13 16:13:31.610440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.613357"], ["updated_at", "2016-05-13 16:13:31.613357"]]  (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-05-13 16:13:31.614949"], ["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 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-05-13 16:13:31.623955"], ["updated_at", "2016-05-13 16:13:31.623955"]]  (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.1ms) 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", "2016-05-13 16:13:31.627726"], ["updated_at", "2016-05-13 16:13:31.627726"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_terms" ("coalescing_panda_lti_account_id", "canvas_term_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["coalescing_panda_lti_account_id", 2], ["canvas_term_id", "52"], ["created_at", "2016-05-13 16:13:31.630231"], ["updated_at", "2016-05-13 16:13:31.630231"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "coalescing_panda_courses" ("coalescing_panda_lti_account_id", "coalescing_panda_term_id", "name", "canvas_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-05-13 16:13:31.631863"], ["updated_at", "2016-05-13 16:13:31.631863"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 CoalescingPanda::CanvasBatch Load (0.1ms) SELECT "coalescing_panda_canvas_batches".* FROM "coalescing_panda_canvas_batches" WHERE "coalescing_panda_canvas_batches"."coalescing_panda_lti_account_id" = ? AND "coalescing_panda_canvas_batches"."context_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-05-13 16:13:31.635096"], ["updated_at", "2016-05-13 16:13:31.635096"]]  (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-05-13 16:13:31.636838"], ["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", "2016-05-13 16:13:31.640266"], ["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