canvas_sync 0.3.22 → 0.3.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/canvas_sync.rb +61 -11
- data/lib/canvas_sync/generators/templates/models/assignment.rb +2 -0
- data/lib/canvas_sync/generators/templates/models/context_module.rb +10 -0
- data/lib/canvas_sync/generators/templates/models/context_module_item.rb +6 -0
- data/lib/canvas_sync/generators/templates/models/create_context_module_items.rb +19 -0
- data/lib/canvas_sync/generators/templates/models/create_context_modules.rb +20 -0
- data/lib/canvas_sync/jobs/sync_context_module_items_job.rb +28 -0
- data/lib/canvas_sync/jobs/sync_context_modules_job.rb +28 -0
- data/lib/canvas_sync/processors/context_module_items_processor.rb +24 -0
- data/lib/canvas_sync/processors/context_modules_processor.rb +24 -0
- data/lib/canvas_sync/processors/model_mappings.yml +47 -0
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/canvas_sync/canvas_sync_spec.rb +3 -3
- data/spec/canvas_sync/jobs/sync_context_module_items_job_spec.rb +29 -0
- data/spec/canvas_sync/jobs/sync_context_modules_job_spec.rb +29 -0
- data/spec/canvas_sync/models/assignment_spec.rb +9 -0
- data/spec/canvas_sync/models/context_module_item_spec.rb +10 -0
- data/spec/canvas_sync/models/context_module_spec.rb +19 -0
- data/spec/canvas_sync/processors/context_module_items_processor_spec.rb +13 -0
- data/spec/canvas_sync/processors/context_modules_processor_spec.rb +13 -0
- data/spec/dummy/app/models/assignment.rb +2 -0
- data/spec/dummy/app/models/context_module.rb +16 -0
- data/spec/dummy/app/models/context_module_item.rb +12 -0
- data/spec/dummy/db/migrate/20180411215348_create_context_modules.rb +26 -0
- data/spec/dummy/db/migrate/20180411215633_create_context_module_items.rb +25 -0
- data/spec/dummy/db/schema.rb +29 -1
- data/spec/dummy/log/development.log +1195 -0
- data/spec/dummy/log/test.log +8076 -0
- data/spec/factories/context_module_factory.rb +8 -0
- data/spec/factories/context_module_item_factory.rb +7 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/support/fixtures/reports/context_module_items.csv +3 -0
- data/spec/support/fixtures/reports/context_modules.csv +3 -0
- metadata +38 -2
@@ -21,6 +21,15 @@ RSpec.describe Assignment, type: :model do
|
|
21
21
|
.with_foreign_key(:canvas_assignment_group_id)
|
22
22
|
end
|
23
23
|
|
24
|
+
it do
|
25
|
+
should have_many(:context_module_items)
|
26
|
+
.with_primary_key(:canvas_assignment_id)
|
27
|
+
.with_foreign_key(:content_id)
|
28
|
+
.dependent(:destroy)
|
29
|
+
end
|
30
|
+
|
31
|
+
it { should have_many(:context_modules).through(:context_module_items) }
|
32
|
+
|
24
33
|
describe "context" do
|
25
34
|
let!(:other_course) { FactoryGirl.create(:course) }
|
26
35
|
let!(:matching_course) { FactoryGirl.create(:course) }
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe ContextModuleItem, type: :model do
|
4
|
+
let(:subject) { FactoryGirl.create(:context_module_item) }
|
5
|
+
|
6
|
+
describe "associations" do
|
7
|
+
it { should belong_to(:context_module) }
|
8
|
+
it { should belong_to(:assignment) }
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe ContextModule, type: :model do
|
4
|
+
let(:subject) { FactoryGirl.create(:context_module) }
|
5
|
+
|
6
|
+
describe "associations" do
|
7
|
+
it do
|
8
|
+
should belong_to(:canvas_context)
|
9
|
+
end
|
10
|
+
|
11
|
+
it do
|
12
|
+
should have_many(:context_module_items)
|
13
|
+
.with_primary_key(:canvas_context_module_id)
|
14
|
+
.with_foreign_key(:canvas_context_module_id)
|
15
|
+
end
|
16
|
+
|
17
|
+
it { should have_many(:assignments).through(:context_module_items) }
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe CanvasSync::Processors::ContextModuleItemsProcessor do
|
4
|
+
let(:subject) { CanvasSync::Processors::ContextModuleItemsProcessor }
|
5
|
+
|
6
|
+
describe "#process" do
|
7
|
+
it "inserts context modules" do
|
8
|
+
expect {
|
9
|
+
subject.process("spec/support/fixtures/reports/context_module_items.csv", {})
|
10
|
+
}.to change { ContextModuleItem.count }.by(2)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe CanvasSync::Processors::ContextModulesProcessor do
|
4
|
+
let(:subject) { CanvasSync::Processors::ContextModulesProcessor }
|
5
|
+
|
6
|
+
describe "#process" do
|
7
|
+
it "inserts context modules" do
|
8
|
+
expect {
|
9
|
+
subject.process("spec/support/fixtures/reports/context_modules.csv", {})
|
10
|
+
}.to change { ContextModule.count }.by(2)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -11,4 +11,6 @@ class Assignment < ApplicationRecord
|
|
11
11
|
belongs_to :context, polymorphic: true, optional: true, primary_key: :canvas_course_id
|
12
12
|
belongs_to :assignment_group, optional: true, primary_key: :canvas_assignment_group_id, foreign_key: :canvas_assignment_group_id
|
13
13
|
has_many :submissions, primary_key: :canvas_assignment_id, foreign_key: :canvas_assignment_id
|
14
|
+
has_many :context_module_items, primary_key: :canvas_assignment_id, foreign_key: :content_id, dependent: :destroy
|
15
|
+
has_many :context_modules, through: :context_module_items
|
14
16
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#
|
2
|
+
# AUTO GENERATED MIGRATION
|
3
|
+
# This migration was auto generated by the CanvasSync Gem.
|
4
|
+
# You can add new columns to this table, but removing or
|
5
|
+
# re-naming ones created here may break Canvas Syncing.
|
6
|
+
#
|
7
|
+
|
8
|
+
|
9
|
+
# A ContextModule is the same as a Canvas Module. They're called ContextModules for 2 reasons:
|
10
|
+
# 1 - Module is a reserved word in Rails and you can't call a model a Module
|
11
|
+
# 2 - Canvas calls them ContextModules
|
12
|
+
class ContextModule < ApplicationRecord
|
13
|
+
belongs_to :canvas_context, polymorphic: true, optional: true
|
14
|
+
has_many :context_module_items, primary_key: :canvas_context_module_id, foreign_key: :canvas_context_module_id
|
15
|
+
has_many :assignments, through: :context_module_items
|
16
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
#
|
2
|
+
# AUTO GENERATED MIGRATION
|
3
|
+
# This migration was auto generated by the CanvasSync Gem.
|
4
|
+
# You can add new columns to this table, but removing or
|
5
|
+
# re-naming ones created here may break Canvas Syncing.
|
6
|
+
#
|
7
|
+
|
8
|
+
|
9
|
+
class ContextModuleItem < ApplicationRecord
|
10
|
+
belongs_to :context_module, primary_key: :canvas_context_module_id, foreign_key: :canvas_context_module_id, optional: true
|
11
|
+
belongs_to :assignment, foreign_key: :content_id, primary_key: :canvas_assignment_id
|
12
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#
|
2
|
+
# AUTO GENERATED MIGRATION
|
3
|
+
# This migration was auto generated by the CanvasSync Gem.
|
4
|
+
# You can add new columns to this table, but removing or
|
5
|
+
# re-naming ones created here may break Canvas Syncing.
|
6
|
+
#
|
7
|
+
|
8
|
+
|
9
|
+
class CreateContextModules < ActiveRecord::Migration[5.1]
|
10
|
+
def change
|
11
|
+
create_table :context_modules do |t|
|
12
|
+
t.bigint :canvas_context_module_id
|
13
|
+
t.bigint :canvas_context_id
|
14
|
+
t.string :canvas_context_type
|
15
|
+
t.integer :position
|
16
|
+
t.string :name
|
17
|
+
t.string :workflow_state
|
18
|
+
t.datetime :deleted_at
|
19
|
+
t.datetime :unlock_at
|
20
|
+
t.timestamps
|
21
|
+
end
|
22
|
+
|
23
|
+
add_index :context_modules, :canvas_context_module_id, unique: true
|
24
|
+
add_index :context_modules, [:canvas_context_id, :canvas_context_type], name: "index_context_modules_on_context"
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#
|
2
|
+
# AUTO GENERATED MIGRATION
|
3
|
+
# This migration was auto generated by the CanvasSync Gem.
|
4
|
+
# You can add new columns to this table, but removing or
|
5
|
+
# re-naming ones created here may break Canvas Syncing.
|
6
|
+
#
|
7
|
+
|
8
|
+
|
9
|
+
class CreateContextModuleItems < ActiveRecord::Migration[5.1]
|
10
|
+
def change
|
11
|
+
create_table :context_module_items do |t|
|
12
|
+
t.bigint :canvas_context_module_item_id
|
13
|
+
t.bigint :canvas_context_module_id
|
14
|
+
t.integer :position
|
15
|
+
t.string :content_type
|
16
|
+
t.bigint :content_id
|
17
|
+
t.string :workflow_state
|
18
|
+
|
19
|
+
t.timestamps
|
20
|
+
end
|
21
|
+
|
22
|
+
add_index :context_module_items, :canvas_context_module_item_id, unique: true
|
23
|
+
add_index :context_module_items, :canvas_context_module_id
|
24
|
+
end
|
25
|
+
end
|
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: 20180411215633) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "plpgsql"
|
@@ -93,6 +93,34 @@ ActiveRecord::Schema.define(version: 20180222163506) do
|
|
93
93
|
t.datetime "updated_at", null: false
|
94
94
|
end
|
95
95
|
|
96
|
+
create_table "context_module_items", force: :cascade do |t|
|
97
|
+
t.bigint "canvas_context_module_item_id"
|
98
|
+
t.bigint "canvas_context_module_id"
|
99
|
+
t.integer "position"
|
100
|
+
t.string "content_type"
|
101
|
+
t.bigint "content_id"
|
102
|
+
t.string "workflow_state"
|
103
|
+
t.datetime "created_at", null: false
|
104
|
+
t.datetime "updated_at", null: false
|
105
|
+
t.index ["canvas_context_module_id"], name: "index_context_module_items_on_canvas_context_module_id"
|
106
|
+
t.index ["canvas_context_module_item_id"], name: "index_context_module_items_on_canvas_context_module_item_id", unique: true
|
107
|
+
end
|
108
|
+
|
109
|
+
create_table "context_modules", force: :cascade do |t|
|
110
|
+
t.bigint "canvas_context_module_id"
|
111
|
+
t.bigint "canvas_context_id"
|
112
|
+
t.string "canvas_context_type"
|
113
|
+
t.integer "position"
|
114
|
+
t.string "name"
|
115
|
+
t.string "workflow_state"
|
116
|
+
t.datetime "deleted_at"
|
117
|
+
t.datetime "unlock_at"
|
118
|
+
t.datetime "created_at", null: false
|
119
|
+
t.datetime "updated_at", null: false
|
120
|
+
t.index ["canvas_context_id", "canvas_context_type"], name: "index_context_modules_on_context"
|
121
|
+
t.index ["canvas_context_module_id"], name: "index_context_modules_on_canvas_context_module_id", unique: true
|
122
|
+
end
|
123
|
+
|
96
124
|
create_table "courses", force: :cascade do |t|
|
97
125
|
t.bigint "canvas_course_id", null: false
|
98
126
|
t.string "sis_id"
|
@@ -980,3 +980,1198 @@ Migrating to CreateAssignments (20180212204530)
|
|
980
980
|
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
981
981
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
982
982
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
983
|
+
[1m[35m (8.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
984
|
+
[1m[35m (21.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
985
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
986
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
987
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
988
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
989
|
+
[1m[35m (258.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
990
|
+
[1m[35m (278.3ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
991
|
+
[1m[35m (45.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
992
|
+
[1m[35m (6.4ms)[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
|
993
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
994
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
995
|
+
Migrating to CreateEnrollments (20170905192509)
|
996
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
997
|
+
[1m[35m (9.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
|
998
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
999
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1000
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1001
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1002
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1003
|
+
Migrating to CreateTerms (20170906193506)
|
1004
|
+
[1m[35m (5.8ms)[0m [1m[35mBEGIN[0m
|
1005
|
+
[1m[35m (18.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
|
1006
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
1007
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
1008
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1009
|
+
Migrating to CreateCourses (20170914181345)
|
1010
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1011
|
+
[1m[35m (8.5ms)[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
|
1012
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
1013
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
1014
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1015
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
1016
|
+
[1m[35m (5.4ms)[0m [1m[35mBEGIN[0m
|
1017
|
+
[1m[35m (30.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
|
1018
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
1019
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1020
|
+
Migrating to CreateUsers (20170918221413)
|
1021
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1022
|
+
[1m[35m (6.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
|
1023
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
1024
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1025
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1026
|
+
Migrating to CreateSections (20171107213207)
|
1027
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1028
|
+
[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
|
1029
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1030
|
+
[1m[35m (7.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
1031
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
1032
|
+
[1m[35m (6.0ms)[0m [1m[35mCOMMIT[0m
|
1033
|
+
Migrating to CreateRoles (20180103162102)
|
1034
|
+
[1m[35m (5.8ms)[0m [1m[35mBEGIN[0m
|
1035
|
+
[1m[35m (10.3ms)[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
|
1036
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
1037
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
1038
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1039
|
+
Migrating to CreateAdmins (20180109210452)
|
1040
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1041
|
+
[1m[35m (7.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
|
1042
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
1043
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
1044
|
+
[1m[35m (6.3ms)[0m [1m[35mCOMMIT[0m
|
1045
|
+
Migrating to CreateAssignments (20180215214227)
|
1046
|
+
[1m[35m (9.2ms)[0m [1m[35mBEGIN[0m
|
1047
|
+
[1m[35m (12.0ms)[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, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1048
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1049
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1050
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1051
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1052
|
+
Migrating to CreateSubmissions (20180216171618)
|
1053
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1054
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1055
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1056
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1057
|
+
[1m[35m (10.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1058
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1059
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
1060
|
+
[1m[35m (4.4ms)[0m [1m[35mCOMMIT[0m
|
1061
|
+
Migrating to CreateAccounts (20180220172559)
|
1062
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1063
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1064
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
1065
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
1066
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1067
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
1068
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1069
|
+
[1m[35m (7.2ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1070
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1071
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1072
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
1073
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1074
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1075
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1076
|
+
[1m[35mSQL (0.5ms)[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-04-11 21:14:50.538995"], ["updated_at", "2018-04-11 21:14:50.538995"]]
|
1077
|
+
[1m[35m (7.0ms)[0m [1m[35mCOMMIT[0m
|
1078
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1079
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1080
|
+
[1m[35m (9.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1081
|
+
[1m[35m (9.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1082
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1083
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1084
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1085
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1086
|
+
[1m[35m (210.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
1087
|
+
[1m[35m (204.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
1088
|
+
[1m[35m (23.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1089
|
+
[1m[35m (5.2ms)[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
|
1090
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1091
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1092
|
+
Migrating to CreateEnrollments (20170905192509)
|
1093
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1094
|
+
[1m[35m (19.7ms)[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
|
1095
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
1096
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1097
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1098
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1099
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
1100
|
+
Migrating to CreateTerms (20170906193506)
|
1101
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1102
|
+
[1m[35m (7.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
|
1103
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
1104
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
1105
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1106
|
+
Migrating to CreateCourses (20170914181345)
|
1107
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1108
|
+
[1m[35m (5.8ms)[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
|
1109
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
1110
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
1111
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1112
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
1113
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
1114
|
+
[1m[35m (22.6ms)[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
|
1115
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
1116
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
1117
|
+
Migrating to CreateUsers (20170918221413)
|
1118
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1119
|
+
[1m[35m (6.8ms)[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
|
1120
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
1121
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1122
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
1123
|
+
Migrating to CreateSections (20171107213207)
|
1124
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1125
|
+
[1m[35m (6.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
|
1126
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1127
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
1128
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
1129
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1130
|
+
Migrating to CreateRoles (20180103162102)
|
1131
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1132
|
+
[1m[35m (11.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
|
1133
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
1134
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
1135
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1136
|
+
Migrating to CreateAdmins (20180109210452)
|
1137
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1138
|
+
[1m[35m (6.8ms)[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
|
1139
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
1140
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
1141
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1142
|
+
Migrating to CreateAssignments (20180215214227)
|
1143
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1144
|
+
[1m[35m (6.8ms)[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, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1145
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1146
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1147
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1148
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1149
|
+
Migrating to CreateSubmissions (20180216171618)
|
1150
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1151
|
+
[1m[35m (6.9ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1152
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1153
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1154
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1155
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1156
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
1157
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1158
|
+
Migrating to CreateAccounts (20180220172559)
|
1159
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1160
|
+
[1m[35m (6.8ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1161
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
1162
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
1163
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1164
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
1165
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1166
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1167
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1168
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1169
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
1170
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1171
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1172
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1173
|
+
[1m[35mSQL (0.5ms)[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-04-11 21:16:15.734765"], ["updated_at", "2018-04-11 21:16:15.734765"]]
|
1174
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1175
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1176
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1177
|
+
[1m[35m (3.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1178
|
+
[1m[35m (14.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1179
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1180
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1181
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1182
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1183
|
+
[1m[35m (236.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
1184
|
+
[1m[35m (146.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
1185
|
+
[1m[35m (21.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1186
|
+
[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
|
1187
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1188
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1189
|
+
Migrating to CreateEnrollments (20170905192509)
|
1190
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1191
|
+
[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
|
1192
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
1193
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1194
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1195
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1196
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1197
|
+
Migrating to CreateTerms (20170906193506)
|
1198
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1199
|
+
[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
|
1200
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
1201
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
1202
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1203
|
+
Migrating to CreateCourses (20170914181345)
|
1204
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1205
|
+
[1m[35m (5.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
|
1206
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
1207
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
1208
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1209
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
1210
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
1211
|
+
[1m[35m (12.6ms)[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
|
1212
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
1213
|
+
[1m[35m (5.0ms)[0m [1m[35mCOMMIT[0m
|
1214
|
+
Migrating to CreateUsers (20170918221413)
|
1215
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1216
|
+
[1m[35m (5.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
|
1217
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
1218
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1219
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1220
|
+
Migrating to CreateSections (20171107213207)
|
1221
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1222
|
+
[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
|
1223
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1224
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
1225
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
1226
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1227
|
+
Migrating to CreateRoles (20180103162102)
|
1228
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1229
|
+
[1m[35m (5.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
|
1230
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
1231
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
1232
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1233
|
+
Migrating to CreateAdmins (20180109210452)
|
1234
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1235
|
+
[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
|
1236
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
1237
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
1238
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1239
|
+
Migrating to CreateAssignments (20180215214227)
|
1240
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1241
|
+
[1m[35m (7.9ms)[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, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1242
|
+
[1m[35m (2.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1243
|
+
[1m[35m (3.1ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1244
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1245
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1246
|
+
Migrating to CreateSubmissions (20180216171618)
|
1247
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1248
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1249
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1250
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1251
|
+
[1m[35m (2.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1252
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1253
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
1254
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1255
|
+
Migrating to CreateAccounts (20180220172559)
|
1256
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1257
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1258
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
1259
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
1260
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1261
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
1262
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1263
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1264
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1265
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1266
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
1267
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1268
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1269
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1270
|
+
[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-04-11 21:16:57.520101"], ["updated_at", "2018-04-11 21:16:57.520101"]]
|
1271
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1272
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1273
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1274
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1275
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1276
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1277
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1278
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1279
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1280
|
+
[1m[35m (213.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
1281
|
+
[1m[35m (200.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
1282
|
+
[1m[35m (26.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1283
|
+
[1m[35m (5.2ms)[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
|
1284
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1285
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1286
|
+
Migrating to CreateEnrollments (20170905192509)
|
1287
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1288
|
+
[1m[35m (6.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
|
1289
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
1290
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1291
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1292
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1293
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
1294
|
+
Migrating to CreateTerms (20170906193506)
|
1295
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1296
|
+
[1m[35m (6.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
|
1297
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
1298
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
1299
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1300
|
+
Migrating to CreateCourses (20170914181345)
|
1301
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1302
|
+
[1m[35m (6.5ms)[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
|
1303
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
1304
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
1305
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1306
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
1307
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1308
|
+
[1m[35m (5.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
|
1309
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
1310
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1311
|
+
Migrating to CreateUsers (20170918221413)
|
1312
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1313
|
+
[1m[35m (6.0ms)[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
|
1314
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
1315
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1316
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1317
|
+
Migrating to CreateSections (20171107213207)
|
1318
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1319
|
+
[1m[35m (7.4ms)[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
|
1320
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1321
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
1322
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
1323
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1324
|
+
Migrating to CreateRoles (20180103162102)
|
1325
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1326
|
+
[1m[35m (6.9ms)[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
|
1327
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
1328
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
1329
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
1330
|
+
Migrating to CreateAdmins (20180109210452)
|
1331
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1332
|
+
[1m[35m (6.7ms)[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
|
1333
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
1334
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
1335
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1336
|
+
Migrating to CreateAssignments (20180215214227)
|
1337
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1338
|
+
[1m[35m (6.8ms)[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, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1339
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1340
|
+
[1m[35m (2.9ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1341
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1342
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1343
|
+
Migrating to CreateSubmissions (20180216171618)
|
1344
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1345
|
+
[1m[35m (7.2ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1346
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1347
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1348
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1349
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1350
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
1351
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1352
|
+
Migrating to CreateAccounts (20180220172559)
|
1353
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1354
|
+
[1m[35m (5.8ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1355
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
1356
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
1357
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1358
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
1359
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1360
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1361
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1362
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1363
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
1364
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1365
|
+
Migrating to CreateContextModules (20180411211708)
|
1366
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1367
|
+
[1m[35m (6.3ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_context_module_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1368
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
1369
|
+
[1m[35m (5.1ms)[0m [1m[31mROLLBACK[0m
|
1370
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1371
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1372
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1373
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1374
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1375
|
+
Migrating to CreateContextModules (20180411212010)
|
1376
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1377
|
+
[1m[35m (15.5ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_context_module_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1378
|
+
[1m[35m (3.1ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
1379
|
+
[1m[35m (5.1ms)[0m [1m[31mROLLBACK[0m
|
1380
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1381
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1382
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1383
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1384
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1385
|
+
Migrating to CreateContextModules (20180411212010)
|
1386
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1387
|
+
[1m[35m (15.9ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_context_module_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1388
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
1389
|
+
[1m[35m (5.8ms)[0m [1m[31mROLLBACK[0m
|
1390
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1391
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1392
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1393
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1394
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1395
|
+
Migrating to CreateContextModules (20180411212552)
|
1396
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1397
|
+
[1m[35m (14.8ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_context_module_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1398
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
1399
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
1400
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411212552"]]
|
1401
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
1402
|
+
[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]]
|
1403
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1404
|
+
[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-04-11 21:26:05.791107"], ["updated_at", "2018-04-11 21:26:05.791107"]]
|
1405
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1406
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1407
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1408
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1409
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1410
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1411
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1412
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1413
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1414
|
+
[1m[35m (214.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
1415
|
+
[1m[35m (208.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
1416
|
+
[1m[35m (24.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1417
|
+
[1m[35m (5.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
|
1418
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1419
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1420
|
+
Migrating to CreateEnrollments (20170905192509)
|
1421
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1422
|
+
[1m[35m (6.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
|
1423
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
1424
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1425
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1426
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1427
|
+
[1m[35m (0.8ms)[0m [1m[35mCOMMIT[0m
|
1428
|
+
Migrating to CreateTerms (20170906193506)
|
1429
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1430
|
+
[1m[35m (5.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
|
1431
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
1432
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
1433
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1434
|
+
Migrating to CreateCourses (20170914181345)
|
1435
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1436
|
+
[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
|
1437
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
1438
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
1439
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1440
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
1441
|
+
[1m[35m (6.6ms)[0m [1m[35mBEGIN[0m
|
1442
|
+
[1m[35m (18.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
|
1443
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
1444
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1445
|
+
Migrating to CreateUsers (20170918221413)
|
1446
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1447
|
+
[1m[35m (6.2ms)[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
|
1448
|
+
[1m[35m (2.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
1449
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1450
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
1451
|
+
Migrating to CreateSections (20171107213207)
|
1452
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
1453
|
+
[1m[35m (7.2ms)[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
|
1454
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1455
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
1456
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
1457
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1458
|
+
Migrating to CreateRoles (20180103162102)
|
1459
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1460
|
+
[1m[35m (6.2ms)[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
|
1461
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
1462
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
1463
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1464
|
+
Migrating to CreateAdmins (20180109210452)
|
1465
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1466
|
+
[1m[35m (6.2ms)[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
|
1467
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
1468
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
1469
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1470
|
+
Migrating to CreateAssignments (20180215214227)
|
1471
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1472
|
+
[1m[35m (7.0ms)[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, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1473
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1474
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1475
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1476
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1477
|
+
Migrating to CreateSubmissions (20180216171618)
|
1478
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1479
|
+
[1m[35m (6.3ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1480
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1481
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1482
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1483
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1484
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
1485
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
1486
|
+
Migrating to CreateAccounts (20180220172559)
|
1487
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1488
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1489
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
1490
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
1491
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1492
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
1493
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1494
|
+
[1m[35m (6.3ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1495
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1496
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1497
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
1498
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1499
|
+
Migrating to CreateContextModules (20180411212552)
|
1500
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1501
|
+
[1m[35m (5.5ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_context_module_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1502
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
1503
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
1504
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411212552"]]
|
1505
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1506
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1507
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1508
|
+
[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-04-11 21:26:29.339767"], ["updated_at", "2018-04-11 21:26:29.339767"]]
|
1509
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1510
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1511
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1512
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1513
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1514
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1515
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1516
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1517
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1518
|
+
[1m[35m (198.3ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
1519
|
+
[1m[35m (216.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
1520
|
+
[1m[35m (21.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1521
|
+
[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
|
1522
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1523
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1524
|
+
Migrating to CreateEnrollments (20170905192509)
|
1525
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1526
|
+
[1m[35m (7.3ms)[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
|
1527
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
1528
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1529
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1530
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1531
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1532
|
+
Migrating to CreateTerms (20170906193506)
|
1533
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1534
|
+
[1m[35m (5.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
|
1535
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
1536
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
1537
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1538
|
+
Migrating to CreateCourses (20170914181345)
|
1539
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1540
|
+
[1m[35m (5.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
|
1541
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
1542
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
1543
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1544
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
1545
|
+
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
1546
|
+
[1m[35m (18.4ms)[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
|
1547
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
1548
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1549
|
+
Migrating to CreateUsers (20170918221413)
|
1550
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1551
|
+
[1m[35m (5.2ms)[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
|
1552
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
1553
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1554
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1555
|
+
Migrating to CreateSections (20171107213207)
|
1556
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1557
|
+
[1m[35m (5.3ms)[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
|
1558
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1559
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
1560
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
1561
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1562
|
+
Migrating to CreateRoles (20180103162102)
|
1563
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1564
|
+
[1m[35m (5.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
|
1565
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
1566
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
1567
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1568
|
+
Migrating to CreateAdmins (20180109210452)
|
1569
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1570
|
+
[1m[35m (6.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
|
1571
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
1572
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
1573
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1574
|
+
Migrating to CreateAssignments (20180215214227)
|
1575
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1576
|
+
[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, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1577
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1578
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1579
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1580
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1581
|
+
Migrating to CreateSubmissions (20180216171618)
|
1582
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1583
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1584
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1585
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1586
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1587
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1588
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
1589
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1590
|
+
Migrating to CreateAccounts (20180220172559)
|
1591
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1592
|
+
[1m[35m (6.8ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1593
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
1594
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
1595
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1596
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
1597
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1598
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1599
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1600
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1601
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
1602
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1603
|
+
Migrating to CreateContextModules (20180411212552)
|
1604
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1605
|
+
[1m[35m (5.7ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_context_module_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1606
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
1607
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
1608
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411212552"]]
|
1609
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1610
|
+
Migrating to CreateContextModuleItems (20180411213654)
|
1611
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1612
|
+
[1m[35m (5.8ms)[0m [1m[35mCREATE TABLE "context_module_items" ("id" bigserial primary key, "canvas_context_module_item_id" bigint, "context_module_id" bigint, "position" integer, "content_type" character varying, "content_id" bigint, "workflow" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1613
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_item_id" ON "context_module_items" ("canvas_context_module_item_id")[0m
|
1614
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_context_module_id" ON "context_module_items" ("context_module_id")[0m
|
1615
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411213654"]]
|
1616
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1617
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1618
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1619
|
+
[1m[35mSQL (0.5ms)[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-04-11 21:37:09.468673"], ["updated_at", "2018-04-11 21:37:09.468673"]]
|
1620
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1621
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1622
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1623
|
+
[1m[35m (2.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1624
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1625
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1626
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1627
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1628
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1629
|
+
[1m[35m (147.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
1630
|
+
[1m[35m (218.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
1631
|
+
[1m[35m (29.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1632
|
+
[1m[35m (5.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
|
1633
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1634
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1635
|
+
Migrating to CreateEnrollments (20170905192509)
|
1636
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1637
|
+
[1m[35m (7.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
|
1638
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
1639
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1640
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1641
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1642
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1643
|
+
Migrating to CreateTerms (20170906193506)
|
1644
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1645
|
+
[1m[35m (22.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
|
1646
|
+
[1m[35m (6.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
1647
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
1648
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
1649
|
+
Migrating to CreateCourses (20170914181345)
|
1650
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1651
|
+
[1m[35m (21.8ms)[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
|
1652
|
+
[1m[35m (8.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
1653
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
1654
|
+
[1m[35m (6.0ms)[0m [1m[35mCOMMIT[0m
|
1655
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
1656
|
+
[1m[35m (10.9ms)[0m [1m[35mBEGIN[0m
|
1657
|
+
[1m[35m (6.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
|
1658
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
1659
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1660
|
+
Migrating to CreateUsers (20170918221413)
|
1661
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1662
|
+
[1m[35m (7.8ms)[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
|
1663
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
1664
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1665
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1666
|
+
Migrating to CreateSections (20171107213207)
|
1667
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1668
|
+
[1m[35m (6.3ms)[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
|
1669
|
+
[1m[35m (8.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1670
|
+
[1m[35m (8.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
1671
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
1672
|
+
[1m[35m (5.8ms)[0m [1m[35mCOMMIT[0m
|
1673
|
+
Migrating to CreateRoles (20180103162102)
|
1674
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1675
|
+
[1m[35m (6.7ms)[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
|
1676
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
1677
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
1678
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1679
|
+
Migrating to CreateAdmins (20180109210452)
|
1680
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1681
|
+
[1m[35m (6.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
|
1682
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
1683
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
1684
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1685
|
+
Migrating to CreateAssignments (20180215214227)
|
1686
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1687
|
+
[1m[35m (13.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, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1688
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1689
|
+
[1m[35m (13.5ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1690
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1691
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1692
|
+
Migrating to CreateSubmissions (20180216171618)
|
1693
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1694
|
+
[1m[35m (6.5ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1695
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1696
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1697
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1698
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1699
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
1700
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1701
|
+
Migrating to CreateAccounts (20180220172559)
|
1702
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1703
|
+
[1m[35m (22.6ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1704
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
1705
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
1706
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1707
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
1708
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1709
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1710
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1711
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1712
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
1713
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1714
|
+
Migrating to CreateContextModules (20180411212552)
|
1715
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1716
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_context_module_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1717
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
1718
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
1719
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411212552"]]
|
1720
|
+
[1m[35m (10.8ms)[0m [1m[35mCOMMIT[0m
|
1721
|
+
Migrating to CreateContextModuleItems (20180411213920)
|
1722
|
+
[1m[35m (4.3ms)[0m [1m[35mBEGIN[0m
|
1723
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE TABLE "context_module_items" ("id" bigserial primary key, "canvas_context_module_item_id" bigint, "context_module_id" bigint, "position" integer, "content_type" character varying, "content_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1724
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_item_id" ON "context_module_items" ("canvas_context_module_item_id")[0m
|
1725
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_context_module_id" ON "context_module_items" ("context_module_id")[0m
|
1726
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411213920"]]
|
1727
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1728
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1729
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1730
|
+
[1m[35mSQL (0.5ms)[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-04-11 21:39:36.786283"], ["updated_at", "2018-04-11 21:39:36.786283"]]
|
1731
|
+
[1m[35m (5.9ms)[0m [1m[35mCOMMIT[0m
|
1732
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1733
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1734
|
+
[1m[35m (2.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1735
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1736
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1737
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1738
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1739
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1740
|
+
[1m[35m (205.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
1741
|
+
[1m[35m (213.3ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
1742
|
+
[1m[35m (23.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1743
|
+
[1m[35m (4.3ms)[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
|
1744
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1745
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1746
|
+
Migrating to CreateEnrollments (20170905192509)
|
1747
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1748
|
+
[1m[35m (6.2ms)[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
|
1749
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
1750
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1751
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1752
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1753
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1754
|
+
Migrating to CreateTerms (20170906193506)
|
1755
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1756
|
+
[1m[35m (5.5ms)[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
|
1757
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
1758
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
1759
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1760
|
+
Migrating to CreateCourses (20170914181345)
|
1761
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1762
|
+
[1m[35m (5.2ms)[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
|
1763
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
1764
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
1765
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1766
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
1767
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1768
|
+
[1m[35m (6.8ms)[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
|
1769
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
1770
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1771
|
+
Migrating to CreateUsers (20170918221413)
|
1772
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1773
|
+
[1m[35m (5.2ms)[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
|
1774
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
1775
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1776
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1777
|
+
Migrating to CreateSections (20171107213207)
|
1778
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1779
|
+
[1m[35m (5.5ms)[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
|
1780
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1781
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
1782
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
1783
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1784
|
+
Migrating to CreateRoles (20180103162102)
|
1785
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1786
|
+
[1m[35m (5.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
|
1787
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
1788
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
1789
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1790
|
+
Migrating to CreateAdmins (20180109210452)
|
1791
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1792
|
+
[1m[35m (6.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
|
1793
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
1794
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
1795
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1796
|
+
Migrating to CreateAssignments (20180215214227)
|
1797
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1798
|
+
[1m[35m (5.8ms)[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, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1799
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1800
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1801
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1802
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1803
|
+
Migrating to CreateSubmissions (20180216171618)
|
1804
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1805
|
+
[1m[35m (5.8ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1806
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1807
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1808
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1809
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1810
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
1811
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1812
|
+
Migrating to CreateAccounts (20180220172559)
|
1813
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1814
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1815
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
1816
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
1817
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1818
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
1819
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1820
|
+
[1m[35m (5.0ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1821
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1822
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1823
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
1824
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1825
|
+
Migrating to CreateContextModules (20180411212552)
|
1826
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1827
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_context_module_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1828
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
1829
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
1830
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411212552"]]
|
1831
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1832
|
+
Migrating to CreateContextModuleItems (20180411214055)
|
1833
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
1834
|
+
[1m[35m (5.7ms)[0m [1m[35mCREATE TABLE "context_module_items" ("id" bigserial primary key, "canvas_context_module_item_id" bigint, "canvas_context_module_id" bigint, "position" integer, "content_type" character varying, "content_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1835
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_item_id" ON "context_module_items" ("canvas_context_module_item_id")[0m
|
1836
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_id" ON "context_module_items" ("canvas_context_module_id")[0m
|
1837
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411214055"]]
|
1838
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1839
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1840
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1841
|
+
[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-04-11 21:41:10.387446"], ["updated_at", "2018-04-11 21:41:10.387446"]]
|
1842
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1843
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1844
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1845
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1846
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1847
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1848
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1849
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1850
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1851
|
+
[1m[35m (213.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
1852
|
+
[1m[35m (213.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
1853
|
+
[1m[35m (24.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1854
|
+
[1m[35m (5.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
|
1855
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1856
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1857
|
+
Migrating to CreateEnrollments (20170905192509)
|
1858
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
1859
|
+
[1m[35m (6.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
|
1860
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
1861
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1862
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1863
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1864
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1865
|
+
Migrating to CreateTerms (20170906193506)
|
1866
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1867
|
+
[1m[35m (6.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
|
1868
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
1869
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
1870
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1871
|
+
Migrating to CreateCourses (20170914181345)
|
1872
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1873
|
+
[1m[35m (6.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
|
1874
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
1875
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
1876
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1877
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
1878
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1879
|
+
[1m[35m (6.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
|
1880
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
1881
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1882
|
+
Migrating to CreateUsers (20170918221413)
|
1883
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1884
|
+
[1m[35m (7.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
|
1885
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
1886
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1887
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1888
|
+
Migrating to CreateSections (20171107213207)
|
1889
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1890
|
+
[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
|
1891
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
1892
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
1893
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
1894
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1895
|
+
Migrating to CreateRoles (20180103162102)
|
1896
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1897
|
+
[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
|
1898
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
1899
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
1900
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1901
|
+
Migrating to CreateAdmins (20180109210452)
|
1902
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1903
|
+
[1m[35m (5.0ms)[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
|
1904
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
1905
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
1906
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1907
|
+
Migrating to CreateAssignments (20180215214227)
|
1908
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1909
|
+
[1m[35m (7.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, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1910
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
1911
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
1912
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
1913
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1914
|
+
Migrating to CreateSubmissions (20180216171618)
|
1915
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1916
|
+
[1m[35m (5.3ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1917
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
1918
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
1919
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
1920
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
1921
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
1922
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1923
|
+
Migrating to CreateAccounts (20180220172559)
|
1924
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1925
|
+
[1m[35m (5.3ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1926
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
1927
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
1928
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1929
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
1930
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1931
|
+
[1m[35m (6.0ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1932
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
1933
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
1934
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
1935
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1936
|
+
Migrating to CreateContextModules (20180411212552)
|
1937
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1938
|
+
[1m[35m (5.5ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_context_module_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1939
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
1940
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
1941
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411212552"]]
|
1942
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1943
|
+
Migrating to CreateContextModuleItems (20180411214055)
|
1944
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
1945
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE TABLE "context_module_items" ("id" bigserial primary key, "canvas_context_module_item_id" bigint, "canvas_context_module_id" bigint, "position" integer, "content_type" character varying, "content_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1946
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_item_id" ON "context_module_items" ("canvas_context_module_item_id")[0m
|
1947
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_id" ON "context_module_items" ("canvas_context_module_id")[0m
|
1948
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411214055"]]
|
1949
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
1950
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1951
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1952
|
+
[1m[35mSQL (0.5ms)[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-04-11 21:45:05.059828"], ["updated_at", "2018-04-11 21:45:05.059828"]]
|
1953
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1954
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
1955
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1956
|
+
[1m[35m (3.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1957
|
+
[1m[35m (8.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1958
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1959
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1960
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1961
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1962
|
+
[1m[35m (229.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
1963
|
+
[1m[35m (215.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
1964
|
+
[1m[35m (13.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1965
|
+
[1m[35m (4.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
|
1966
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1967
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1968
|
+
Migrating to CreateEnrollments (20170905192509)
|
1969
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
1970
|
+
[1m[35m (19.5ms)[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
|
1971
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
1972
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
1973
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
1974
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
1975
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1976
|
+
Migrating to CreateTerms (20170906193506)
|
1977
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
1978
|
+
[1m[35m (18.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
|
1979
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
1980
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
1981
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1982
|
+
Migrating to CreateCourses (20170914181345)
|
1983
|
+
[1m[35m (11.5ms)[0m [1m[35mBEGIN[0m
|
1984
|
+
[1m[35m (13.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
|
1985
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
1986
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
1987
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
1988
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
1989
|
+
[1m[35m (6.4ms)[0m [1m[35mBEGIN[0m
|
1990
|
+
[1m[35m (18.6ms)[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
|
1991
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
1992
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
1993
|
+
Migrating to CreateUsers (20170918221413)
|
1994
|
+
[1m[35m (6.3ms)[0m [1m[35mBEGIN[0m
|
1995
|
+
[1m[35m (18.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
|
1996
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
1997
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
1998
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
1999
|
+
Migrating to CreateSections (20171107213207)
|
2000
|
+
[1m[35m (6.2ms)[0m [1m[35mBEGIN[0m
|
2001
|
+
[1m[35m (18.5ms)[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
|
2002
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
2003
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
2004
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
2005
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2006
|
+
Migrating to CreateRoles (20180103162102)
|
2007
|
+
[1m[35m (5.8ms)[0m [1m[35mBEGIN[0m
|
2008
|
+
[1m[35m (18.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
|
2009
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
2010
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
2011
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2012
|
+
Migrating to CreateAdmins (20180109210452)
|
2013
|
+
[1m[35m (6.4ms)[0m [1m[35mBEGIN[0m
|
2014
|
+
[1m[35m (18.8ms)[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
|
2015
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
2016
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
2017
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2018
|
+
Migrating to CreateAssignments (20180215214227)
|
2019
|
+
[1m[35m (12.2ms)[0m [1m[35mBEGIN[0m
|
2020
|
+
[1m[35m (14.1ms)[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, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2021
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
2022
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
2023
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
2024
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2025
|
+
Migrating to CreateSubmissions (20180216171618)
|
2026
|
+
[1m[35m (5.8ms)[0m [1m[35mBEGIN[0m
|
2027
|
+
[1m[35m (18.3ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2028
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
2029
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
2030
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
2031
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
2032
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
2033
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2034
|
+
Migrating to CreateAccounts (20180220172559)
|
2035
|
+
[1m[35m (6.2ms)[0m [1m[35mBEGIN[0m
|
2036
|
+
[1m[35m (19.0ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2037
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
2038
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
2039
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2040
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
2041
|
+
[1m[35m (6.3ms)[0m [1m[35mBEGIN[0m
|
2042
|
+
[1m[35m (18.5ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2043
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
2044
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
2045
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
2046
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2047
|
+
Migrating to CreateContextModuleItems (20180411214055)
|
2048
|
+
[1m[35m (6.3ms)[0m [1m[35mBEGIN[0m
|
2049
|
+
[1m[35m (43.5ms)[0m [1m[35mCREATE TABLE "context_module_items" ("id" bigserial primary key, "canvas_context_module_item_id" bigint, "canvas_context_module_id" bigint, "position" integer, "content_type" character varying, "content_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2050
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_item_id" ON "context_module_items" ("canvas_context_module_item_id")[0m
|
2051
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_id" ON "context_module_items" ("canvas_context_module_id")[0m
|
2052
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411214055"]]
|
2053
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
2054
|
+
Migrating to CreateContextModules (20180411215348)
|
2055
|
+
[1m[35m (6.1ms)[0m [1m[35mBEGIN[0m
|
2056
|
+
[1m[35m (18.5ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_context_module_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2057
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
2058
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
2059
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215348"]]
|
2060
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
2061
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2062
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
2063
|
+
[1m[35mSQL (0.6ms)[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-04-11 21:54:05.543735"], ["updated_at", "2018-04-11 21:54:05.543735"]]
|
2064
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2065
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
2066
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2067
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2068
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2069
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2070
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2071
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2072
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2073
|
+
[1m[35m (216.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
2074
|
+
[1m[35m (217.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
2075
|
+
[1m[35m (20.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2076
|
+
[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
|
2077
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
2078
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2079
|
+
Migrating to CreateEnrollments (20170905192509)
|
2080
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2081
|
+
[1m[35m (6.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
|
2082
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
2083
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
2084
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
2085
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
2086
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2087
|
+
Migrating to CreateTerms (20170906193506)
|
2088
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2089
|
+
[1m[35m (5.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
|
2090
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
2091
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
2092
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2093
|
+
Migrating to CreateCourses (20170914181345)
|
2094
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2095
|
+
[1m[35m (5.5ms)[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
|
2096
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
2097
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
2098
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2099
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
2100
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2101
|
+
[1m[35m (5.8ms)[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
|
2102
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
2103
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2104
|
+
Migrating to CreateUsers (20170918221413)
|
2105
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2106
|
+
[1m[35m (6.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
|
2107
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
2108
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
2109
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2110
|
+
Migrating to CreateSections (20171107213207)
|
2111
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2112
|
+
[1m[35m (5.3ms)[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
|
2113
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
2114
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
2115
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
2116
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2117
|
+
Migrating to CreateRoles (20180103162102)
|
2118
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2119
|
+
[1m[35m (5.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
|
2120
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
2121
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
2122
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
2123
|
+
Migrating to CreateAdmins (20180109210452)
|
2124
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2125
|
+
[1m[35m (5.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
|
2126
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
2127
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
2128
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2129
|
+
Migrating to CreateAssignments (20180215214227)
|
2130
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
2131
|
+
[1m[35m (7.1ms)[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, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2132
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
2133
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
2134
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
2135
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2136
|
+
Migrating to CreateSubmissions (20180216171618)
|
2137
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2138
|
+
[1m[35m (12.6ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint, "canvas_assignment_id" bigint, "canvas_user_id" bigint, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "excused" boolean, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2139
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
2140
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
2141
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
2142
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
2143
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
2144
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2145
|
+
Migrating to CreateAccounts (20180220172559)
|
2146
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2147
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE TABLE "accounts" ("id" bigserial primary key, "canvas_account_id" bigint NOT NULL, "account_id" character varying, "canvas_parent_id" bigint, "parent_account_id" character varying, "name" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2148
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
2149
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
2150
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2151
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
2152
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2153
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE TABLE "assignment_groups" ("id" bigserial primary key, "canvas_assignment_group_id" bigint NOT NULL, "canvas_course_id" bigint, "name" character varying, "rules" text, "position" integer, "group_weight" float, "workflow_state" character varying, "canvas_created_at" timestamp, "canvas_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2154
|
+
[1m[35m (8.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
2155
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
2156
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
2157
|
+
[1m[35m (5.8ms)[0m [1m[35mCOMMIT[0m
|
2158
|
+
Migrating to CreateContextModules (20180411215348)
|
2159
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2160
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE TABLE "context_modules" ("id" bigserial primary key, "canvas_context_module_id" bigint, "canvas_context_id" bigint, "canvas_context_type" character varying, "position" integer, "name" character varying, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2161
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
2162
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
2163
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215348"]]
|
2164
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2165
|
+
Migrating to CreateContextModuleItems (20180411215633)
|
2166
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2167
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE TABLE "context_module_items" ("id" bigserial primary key, "canvas_context_module_item_id" bigint, "canvas_context_module_id" bigint, "position" integer, "content_type" character varying, "content_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2168
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_module_items_on_canvas_context_module_item_id" ON "context_module_items" ("canvas_context_module_item_id")[0m
|
2169
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_id" ON "context_module_items" ("canvas_context_module_id")[0m
|
2170
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215633"]]
|
2171
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
2172
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.8ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2173
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
2174
|
+
[1m[35mSQL (0.9ms)[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-04-11 21:56:49.331149"], ["updated_at", "2018-04-11 21:56:49.331149"]]
|
2175
|
+
[1m[35m (5.7ms)[0m [1m[35mCOMMIT[0m
|
2176
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
2177
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|