canvas_sync 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/canvas_sync.rb +11 -6
- data/lib/canvas_sync/generators/templates/models/assignment.rb +6 -0
- data/lib/canvas_sync/generators/templates/models/course.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/create_assignments.rb +31 -0
- data/lib/canvas_sync/jobs/sync_assignments_job.rb +28 -0
- data/lib/canvas_sync/processors/assignments_processor.rb +24 -0
- data/lib/canvas_sync/processors/model_mappings.yml +58 -0
- data/lib/canvas_sync/processors/provisioning_report_processor.rb +5 -19
- data/lib/canvas_sync/processors/report_processor.rb +22 -0
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/canvas_sync/canvas_sync_spec.rb +15 -0
- data/spec/canvas_sync/jobs/sync_assignments_job_spec.rb +29 -0
- data/spec/canvas_sync/models/assignments_spec.rb +25 -0
- data/spec/canvas_sync/models/course_spec.rb +5 -0
- data/spec/canvas_sync/processors/assignments_processor_spec.rb +13 -0
- data/spec/dummy/app/models/assignment.rb +12 -0
- data/spec/dummy/app/models/course.rb +1 -0
- data/spec/dummy/db/migrate/20180212204530_create_assignments.rb +37 -0
- data/spec/dummy/db/schema.rb +26 -1
- data/spec/dummy/log/development.log +551 -0
- data/spec/dummy/log/test.log +13186 -0
- data/spec/factories/assignment_factory.rb +9 -0
- data/spec/support/fixtures/reports/assignments.csv +3 -0
- metadata +35 -2
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 20180212204530) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "plpgsql"
|
@@ -27,6 +27,31 @@ ActiveRecord::Schema.define(version: 20180109210452) do
|
|
27
27
|
t.index ["canvas_admin_id"], name: "index_admins_on_canvas_admin_id", unique: true
|
28
28
|
end
|
29
29
|
|
30
|
+
create_table "assignments", force: :cascade do |t|
|
31
|
+
t.bigint "canvas_assignment_id", null: false
|
32
|
+
t.string "title"
|
33
|
+
t.text "description"
|
34
|
+
t.datetime "due_at"
|
35
|
+
t.datetime "unlock_at"
|
36
|
+
t.datetime "lock_at"
|
37
|
+
t.integer "points_possible"
|
38
|
+
t.integer "min_score"
|
39
|
+
t.integer "max_score"
|
40
|
+
t.integer "mastery_score"
|
41
|
+
t.string "grading_type"
|
42
|
+
t.string "submission_types"
|
43
|
+
t.string "workflow_state"
|
44
|
+
t.integer "context_id"
|
45
|
+
t.string "context_type"
|
46
|
+
t.integer "assignment_group_id"
|
47
|
+
t.integer "grading_scheme_id"
|
48
|
+
t.integer "grading_standard_id"
|
49
|
+
t.datetime "created_at", null: false
|
50
|
+
t.datetime "updated_at", null: false
|
51
|
+
t.index ["canvas_assignment_id"], name: "index_assignments_on_canvas_assignment_id", unique: true
|
52
|
+
t.index ["context_id", "context_type"], name: "index_assignments_on_context_id_and_context_type"
|
53
|
+
end
|
54
|
+
|
30
55
|
create_table "canvas_sync_job_logs", force: :cascade do |t|
|
31
56
|
t.datetime "started_at"
|
32
57
|
t.datetime "completed_at"
|
@@ -429,3 +429,554 @@ Migrating to CreateUsers (20170918221413)
|
|
429
429
|
FROM sqlite_temp_master
|
430
430
|
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
431
431
|
[0m
|
432
|
+
[1m[35m (1.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
433
|
+
[1m[35m (225.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
434
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
435
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
436
|
+
[1m[35m (25.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
437
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
438
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
439
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
440
|
+
Migrating to CreateEnrollments (20170905192509)
|
441
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
442
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
443
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
444
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
445
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
446
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
447
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
448
|
+
Migrating to CreateTerms (20170906193506)
|
449
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
450
|
+
[1m[35m (6.0ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
451
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
452
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
453
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
454
|
+
Migrating to CreateCourses (20170914181345)
|
455
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
456
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
457
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
458
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
459
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
460
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
461
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
462
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
463
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
464
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
465
|
+
Migrating to CreateUsers (20170918221413)
|
466
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
467
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
468
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
469
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
470
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
471
|
+
Migrating to CreateSections (20171107213207)
|
472
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
473
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
474
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
475
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
476
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
477
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
478
|
+
Migrating to CreateRoles (20180103162102)
|
479
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
480
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
481
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
482
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
483
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
484
|
+
Migrating to CreateAdmins (20180109210452)
|
485
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
486
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
487
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
488
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
489
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
490
|
+
Migrating to CreateAssignments (20180212180400)
|
491
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
492
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
493
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
494
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
495
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
496
|
+
Migrating to CreateAssignments (20180212180536)
|
497
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
498
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
499
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
500
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
501
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
502
|
+
Migrating to CreateAssignments (20180212180536)
|
503
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
504
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
505
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
506
|
+
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
507
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
508
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
509
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
510
|
+
Migrating to CreateAssignments (20180212180801)
|
511
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
512
|
+
[1m[35m (16.4ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" integer, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
513
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
514
|
+
[1m[35m (5.1ms)[0m [1m[31mROLLBACK[0m
|
515
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
516
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
517
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
518
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
519
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
520
|
+
Migrating to CreateAssignments (20180212180855)
|
521
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
522
|
+
[1m[35m (9.6ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" integer, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
523
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
524
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
525
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212180855"]]
|
526
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
527
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
528
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
529
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-12 18:09:09.560201"], ["updated_at", "2018-02-12 18:09:09.560201"]]
|
530
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
531
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
532
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
533
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
534
|
+
[1m[35m (14.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
535
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
536
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
537
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
538
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
539
|
+
[1m[35m (135.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
540
|
+
[1m[35m (202.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
541
|
+
[1m[35m (23.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
542
|
+
[1m[35m (14.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
543
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
544
|
+
[1m[35m (2.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
545
|
+
Migrating to CreateEnrollments (20170905192509)
|
546
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
547
|
+
[1m[35m (18.6ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
548
|
+
[1m[35m (2.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
549
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
550
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
551
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
552
|
+
[1m[35m (4.6ms)[0m [1m[35mCOMMIT[0m
|
553
|
+
Migrating to CreateTerms (20170906193506)
|
554
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
555
|
+
[1m[35m (6.3ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
556
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
557
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
558
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
559
|
+
Migrating to CreateCourses (20170914181345)
|
560
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
561
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
562
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
563
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
564
|
+
[1m[35m (6.0ms)[0m [1m[35mCOMMIT[0m
|
565
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
566
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
567
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
568
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
569
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
570
|
+
Migrating to CreateUsers (20170918221413)
|
571
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
572
|
+
[1m[35m (6.3ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
573
|
+
[1m[35m (19.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
574
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
575
|
+
[1m[35m (5.5ms)[0m [1m[35mCOMMIT[0m
|
576
|
+
Migrating to CreateSections (20171107213207)
|
577
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
578
|
+
[1m[35m (6.0ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
579
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
580
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
581
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
582
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
583
|
+
Migrating to CreateRoles (20180103162102)
|
584
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
585
|
+
[1m[35m (17.1ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
586
|
+
[1m[35m (35.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
587
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
588
|
+
[1m[35m (10.7ms)[0m [1m[35mCOMMIT[0m
|
589
|
+
Migrating to CreateAdmins (20180109210452)
|
590
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
591
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
592
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
593
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
594
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
595
|
+
Migrating to CreateAssignments (20180212180855)
|
596
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
597
|
+
[1m[35m (6.5ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" integer, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
598
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
599
|
+
[1m[35m (13.1ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
600
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212180855"]]
|
601
|
+
[1m[35m (5.0ms)[0m [1m[35mCOMMIT[0m
|
602
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
603
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
604
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-12 19:11:44.464506"], ["updated_at", "2018-02-12 19:11:44.464506"]]
|
605
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
606
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
607
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
608
|
+
[1m[35m (18.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
609
|
+
[1m[35m (8.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
610
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
611
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
612
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
613
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
614
|
+
[1m[35m (203.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
615
|
+
[1m[35m (197.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
616
|
+
[1m[35m (16.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
617
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
618
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
619
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
620
|
+
Migrating to CreateEnrollments (20170905192509)
|
621
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
622
|
+
[1m[35m (23.1ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
623
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
624
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
625
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
626
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
627
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
628
|
+
Migrating to CreateTerms (20170906193506)
|
629
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
630
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
631
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
632
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
633
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
634
|
+
Migrating to CreateCourses (20170914181345)
|
635
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
636
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
637
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
638
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
639
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
640
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
641
|
+
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
642
|
+
[1m[35m (22.5ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
643
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
644
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
645
|
+
Migrating to CreateUsers (20170918221413)
|
646
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
647
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
648
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
649
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
650
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
651
|
+
Migrating to CreateSections (20171107213207)
|
652
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
653
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
654
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
655
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
656
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
657
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
658
|
+
Migrating to CreateRoles (20180103162102)
|
659
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
660
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
661
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
662
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
663
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
664
|
+
Migrating to CreateAdmins (20180109210452)
|
665
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
666
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
667
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
668
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
669
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
670
|
+
Migrating to CreateAssignments (20180212180855)
|
671
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
672
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" integer, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
673
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
674
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
675
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212180855"]]
|
676
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
677
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
678
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
679
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-12 19:22:31.493969"], ["updated_at", "2018-02-12 19:22:31.493969"]]
|
680
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
681
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
682
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
683
|
+
[1m[35m (2.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
684
|
+
[1m[35m (8.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
685
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
686
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
687
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
688
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
689
|
+
[1m[35m (204.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
690
|
+
[1m[35m (141.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
691
|
+
[1m[35m (17.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
692
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
693
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
694
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
695
|
+
Migrating to CreateEnrollments (20170905192509)
|
696
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
697
|
+
[1m[35m (23.0ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
698
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
699
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
700
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
701
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
702
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
703
|
+
Migrating to CreateTerms (20170906193506)
|
704
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
705
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
706
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
707
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
708
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
709
|
+
Migrating to CreateCourses (20170914181345)
|
710
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
711
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
712
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
713
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
714
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
715
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
716
|
+
[1m[35m (6.1ms)[0m [1m[35mBEGIN[0m
|
717
|
+
[1m[35m (17.2ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
718
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
719
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
720
|
+
Migrating to CreateUsers (20170918221413)
|
721
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
722
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
723
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
724
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
725
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
726
|
+
Migrating to CreateSections (20171107213207)
|
727
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
728
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
729
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
730
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
731
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
732
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
733
|
+
Migrating to CreateRoles (20180103162102)
|
734
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
735
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
736
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
737
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
738
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
739
|
+
Migrating to CreateAdmins (20180109210452)
|
740
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
741
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
742
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
743
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
744
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
745
|
+
Migrating to CreateAssignments (20180212180855)
|
746
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
747
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" integer, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
748
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
749
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
750
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212180855"]]
|
751
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
752
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
753
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
754
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-12 19:38:47.599194"], ["updated_at", "2018-02-12 19:38:47.599194"]]
|
755
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
756
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
757
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
758
|
+
[1m[35m (2.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
759
|
+
[1m[35m (9.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
760
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
761
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
762
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
763
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
764
|
+
[1m[35m (205.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
765
|
+
[1m[35m (207.3ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
766
|
+
[1m[35m (19.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
767
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
768
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
769
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
770
|
+
Migrating to CreateEnrollments (20170905192509)
|
771
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
772
|
+
[1m[35m (18.8ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
773
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
774
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
775
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
776
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
777
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
778
|
+
Migrating to CreateTerms (20170906193506)
|
779
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
780
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
781
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
782
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
783
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
784
|
+
Migrating to CreateCourses (20170914181345)
|
785
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
786
|
+
[1m[35m (6.0ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
787
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
788
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
789
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
790
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
791
|
+
[1m[35m (11.0ms)[0m [1m[35mBEGIN[0m
|
792
|
+
[1m[35m (17.1ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
793
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
794
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
795
|
+
Migrating to CreateUsers (20170918221413)
|
796
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
797
|
+
[1m[35m (6.4ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
798
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
799
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
800
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
801
|
+
Migrating to CreateSections (20171107213207)
|
802
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
803
|
+
[1m[35m (5.8ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
804
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
805
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
806
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
807
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
808
|
+
Migrating to CreateRoles (20180103162102)
|
809
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
810
|
+
[1m[35m (5.4ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
811
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
812
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
813
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
814
|
+
Migrating to CreateAdmins (20180109210452)
|
815
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
816
|
+
[1m[35m (5.4ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
817
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
818
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
819
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
820
|
+
Migrating to CreateAssignments (20180212194212)
|
821
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
822
|
+
[1m[35m (5.7ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
823
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
824
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
825
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212194212"]]
|
826
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
827
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
828
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
829
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-12 19:42:28.390152"], ["updated_at", "2018-02-12 19:42:28.390152"]]
|
830
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
831
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
832
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
833
|
+
[1m[35m (4.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
834
|
+
[1m[35m (8.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
835
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
836
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
837
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
838
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
839
|
+
[1m[35m (198.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
840
|
+
[1m[35m (138.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
841
|
+
[1m[35m (17.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
842
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
843
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
844
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
845
|
+
Migrating to CreateEnrollments (20170905192509)
|
846
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
847
|
+
[1m[35m (17.9ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
848
|
+
[1m[35m (6.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
849
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
850
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
851
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
852
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
853
|
+
Migrating to CreateTerms (20170906193506)
|
854
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
855
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
856
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
857
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
858
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
859
|
+
Migrating to CreateCourses (20170914181345)
|
860
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
861
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
862
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
863
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
864
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
865
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
866
|
+
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
867
|
+
[1m[35m (18.0ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
868
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
869
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
870
|
+
Migrating to CreateUsers (20170918221413)
|
871
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
872
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
873
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
874
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
875
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
876
|
+
Migrating to CreateSections (20171107213207)
|
877
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
878
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
879
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
880
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
881
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
882
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
883
|
+
Migrating to CreateRoles (20180103162102)
|
884
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
885
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
886
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
887
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
888
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
889
|
+
Migrating to CreateAdmins (20180109210452)
|
890
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
891
|
+
[1m[35m (4.5ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
892
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
893
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
894
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
895
|
+
Migrating to CreateAssignments (20180212194212)
|
896
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
897
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
898
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
899
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
900
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212194212"]]
|
901
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
902
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
903
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
904
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-12 19:57:27.403506"], ["updated_at", "2018-02-12 19:57:27.403506"]]
|
905
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
906
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
907
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
908
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
909
|
+
[1m[35m (19.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
910
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
911
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
912
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
913
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
914
|
+
[1m[35m (204.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
915
|
+
[1m[35m (213.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
916
|
+
[1m[35m (17.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
917
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
918
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
919
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
920
|
+
Migrating to CreateEnrollments (20170905192509)
|
921
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
922
|
+
[1m[35m (22.4ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
923
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
924
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
925
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
926
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
927
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
928
|
+
Migrating to CreateTerms (20170906193506)
|
929
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
930
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
931
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
932
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
933
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
934
|
+
Migrating to CreateCourses (20170914181345)
|
935
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
936
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
937
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
938
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
939
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
940
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
941
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
942
|
+
[1m[35m (20.0ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
943
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
944
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
945
|
+
Migrating to CreateUsers (20170918221413)
|
946
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
947
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
948
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
949
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
950
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
951
|
+
Migrating to CreateSections (20171107213207)
|
952
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
953
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
954
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
955
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
956
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
957
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
958
|
+
Migrating to CreateRoles (20180103162102)
|
959
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
960
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
961
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
962
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
963
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
964
|
+
Migrating to CreateAdmins (20180109210452)
|
965
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
966
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
967
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
968
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
969
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
970
|
+
Migrating to CreateAssignments (20180212204530)
|
971
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
972
|
+
[1m[35m (5.4ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
973
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
974
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
975
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212204530"]]
|
976
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
977
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
978
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
979
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-12 20:45:44.469619"], ["updated_at", "2018-02-12 20:45:44.469619"]]
|
980
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
981
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
982
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|