canvas_sync 0.4.1 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/canvas_sync.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/context_module_item.rb +2 -2
- data/lib/canvas_sync/generators/templates/models/create_context_module_items.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/create_users.rb +2 -0
- data/lib/canvas_sync/generators/templates/services/live_events/course/course_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/course_section/course_section_created_event.rb +6 -0
- data/lib/canvas_sync/generators/templates/services/live_events/course_section/course_section_event.rb +48 -0
- data/lib/canvas_sync/generators/templates/services/live_events/course_section/course_section_updated_event.rb +6 -0
- data/lib/canvas_sync/generators/templates/services/live_events/user/user_created_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/user/user_event.rb +25 -23
- data/lib/canvas_sync/processors/model_mappings.yml +9 -0
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/dummy/app/models/context_module_item.rb +2 -2
- data/spec/dummy/app/services/live_events/course_event.rb +1 -1
- data/spec/dummy/app/services/live_events/course_section_created_event.rb +12 -0
- data/spec/dummy/app/services/live_events/course_section_event.rb +54 -0
- data/spec/dummy/app/services/live_events/course_section_updated_event.rb +12 -0
- data/spec/dummy/app/services/live_events/user_created_event.rb +1 -1
- data/spec/dummy/app/services/live_events/user_event.rb +25 -23
- data/spec/dummy/db/migrate/{20170918221413_create_users.rb → 20180509194201_create_users.rb} +2 -0
- data/spec/dummy/db/migrate/{20180411215633_create_context_module_items.rb → 20180605172338_create_context_module_items.rb} +1 -0
- data/spec/dummy/db/schema.rb +4 -1
- data/spec/dummy/log/development.log +777 -0
- data/spec/dummy/log/test.log +2358 -0
- data/spec/support/fixtures/reports/context_module_items.csv +3 -3
- metadata +15 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a82591fda24f7e0687a9715244bb6d91ef5bf1ddc2c17d8acf7b991b1fab03a
|
4
|
+
data.tar.gz: 405503169a3f899f7186cf13733941769e4f888e0b33568a11213bb2cffcecf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ba3e405ad320537f29814933fb862f02999c0f106d04fa3cf07989a0cac32872c3d1ad0282203d39b077c62497dc8fad509dd6e30145f10a46a75bb604e2773
|
7
|
+
data.tar.gz: ba5a41419346b464bb2fe71997ce2cee4566a60152993b63d732895b4af134768e8c555bbabc1a290be4feecacd54aa72178f0b3c1c11eca53f43d862aea6234
|
data/lib/canvas_sync.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
<%= autogenerated_migration_warning %>
|
1
|
+
# <%= autogenerated_migration_warning %>
|
2
2
|
|
3
3
|
class ContextModuleItem < ApplicationRecord
|
4
4
|
belongs_to :context_module, primary_key: :canvas_context_module_id, foreign_key: :canvas_context_module_id, optional: true
|
5
|
-
belongs_to :assignment, foreign_key: :
|
5
|
+
belongs_to :assignment, foreign_key: :canvas_assignment_id, primary_key: :canvas_assignment_id
|
6
6
|
end
|
@@ -27,7 +27,7 @@ module LiveEvents
|
|
27
27
|
private
|
28
28
|
|
29
29
|
def create_or_update(attrs)
|
30
|
-
course = Course.where(
|
30
|
+
course = Course.where(canvas_course_id: attrs[:canvas_course_id]).first_or_initialize
|
31
31
|
course.assign_attributes(attrs)
|
32
32
|
course.save!
|
33
33
|
course
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# <%= autogenerated_event_warning %>
|
2
|
+
|
3
|
+
module LiveEvents
|
4
|
+
class CourseSectionEvent < LiveEvents::BaseEvent
|
5
|
+
# The following is provided in the live events call:
|
6
|
+
# {
|
7
|
+
# course_section_id: section.id,
|
8
|
+
# sis_source_id: section.sis_source_id,
|
9
|
+
# sis_batch_id: section.sis_batch_id,
|
10
|
+
# course_id: section.course_id,
|
11
|
+
# root_account_id: section.root_account_id,
|
12
|
+
# enrollment_term_id: section.enrollment_term_id,
|
13
|
+
# name: section.name,
|
14
|
+
# default_section: section.default_section,
|
15
|
+
# accepting_enrollments: section.accepting_enrollments,
|
16
|
+
# can_manually_enroll: section.can_manually_enroll,
|
17
|
+
# start_at: section.start_at,
|
18
|
+
# end_at: section.end_at,
|
19
|
+
# workflow_state: section.workflow_state,
|
20
|
+
# restrict_enrollments_to_section_dates: section.restrict_enrollments_to_section_dates,
|
21
|
+
# nonxlist_course_id: section.nonxlist_course_id,
|
22
|
+
# stuck_sis_fields: section.stuck_sis_fields,
|
23
|
+
# integration_id: section.integration_id
|
24
|
+
# }
|
25
|
+
|
26
|
+
def perform(_event_payload)
|
27
|
+
super
|
28
|
+
attrs = {
|
29
|
+
canvas_section_id: local_canvas_id(payload[:course_section_id]),
|
30
|
+
canvas_course_id: local_canvas_id(payload[:course_id]),
|
31
|
+
name: payload[:name],
|
32
|
+
status: payload[:workflow_state],
|
33
|
+
start_date: payload[:start_at],
|
34
|
+
end_date: payload[:end_at],
|
35
|
+
canvas_nonxlist_course_id: payload[:nonxlist_course_id],
|
36
|
+
}
|
37
|
+
create_or_update(attrs)
|
38
|
+
end
|
39
|
+
|
40
|
+
private
|
41
|
+
|
42
|
+
def create_or_update(attrs)
|
43
|
+
section = Section.where(canvas_section_id: attrs[:canvas_section_id]).first_or_initialize
|
44
|
+
section.assign_attributes(attrs)
|
45
|
+
section.save!
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -2,31 +2,33 @@
|
|
2
2
|
|
3
3
|
module LiveEvents
|
4
4
|
class UserEvent < LiveEvents::BaseEvent
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
5
|
+
# The following is provided in the live events call:
|
6
|
+
# {
|
7
|
+
# user_id: user.global_id,
|
8
|
+
# uuid: user.uuid,
|
9
|
+
# name: user.name,
|
10
|
+
# short_name: user.short_name,
|
11
|
+
# workflow_state: user.workflow_state,
|
12
|
+
# created_at: user.created_at,
|
13
|
+
# updated_at: user.updated_at
|
14
|
+
# }
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
16
|
+
def perform(event_payload)
|
17
|
+
super
|
18
|
+
attrs = {
|
19
|
+
canvas_user_id: local_canvas_id(payload[:user_id]),
|
20
|
+
full_name: payload[:name],
|
21
|
+
status: payload[:workflow_state],
|
22
|
+
}
|
23
|
+
create_or_update(attrs)
|
24
|
+
end
|
24
25
|
|
25
|
-
|
26
|
+
private
|
26
27
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
28
|
+
def create_or_update(attrs)
|
29
|
+
user = User.where(canvas_user_id: attrs[:canvas_user_id]).first_or_initialize
|
30
|
+
user.assign_attributes(attrs)
|
31
|
+
user.save!
|
32
|
+
end
|
31
33
|
end
|
32
34
|
end
|
@@ -16,6 +16,12 @@ users:
|
|
16
16
|
last_name:
|
17
17
|
database_column_name: last_name
|
18
18
|
type: string
|
19
|
+
full_name:
|
20
|
+
database_column_name: full_name
|
21
|
+
type: string
|
22
|
+
sortable_name:
|
23
|
+
database_column_name: sortable_name
|
24
|
+
type: string
|
19
25
|
status:
|
20
26
|
database_column_name: status
|
21
27
|
type: string
|
@@ -320,3 +326,6 @@ context_module_items:
|
|
320
326
|
workflow_state:
|
321
327
|
database_column_name: workflow_state
|
322
328
|
type: string
|
329
|
+
assignment_id:
|
330
|
+
database_column_name: canvas_assignment_id
|
331
|
+
type: integer
|
data/lib/canvas_sync/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# #
|
2
2
|
# AUTO GENERATED MIGRATION
|
3
3
|
# This migration was auto generated by the CanvasSync Gem.
|
4
4
|
# You can add new columns to this table, but removing or
|
@@ -8,5 +8,5 @@
|
|
8
8
|
|
9
9
|
class ContextModuleItem < ApplicationRecord
|
10
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: :
|
11
|
+
belongs_to :assignment, foreign_key: :canvas_assignment_id, primary_key: :canvas_assignment_id
|
12
12
|
end
|
@@ -33,7 +33,7 @@ module LiveEvents
|
|
33
33
|
private
|
34
34
|
|
35
35
|
def create_or_update(attrs)
|
36
|
-
course = Course.where(
|
36
|
+
course = Course.where(canvas_course_id: attrs[:canvas_course_id]).first_or_initialize
|
37
37
|
course.assign_attributes(attrs)
|
38
38
|
course.save!
|
39
39
|
course
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# #
|
2
|
+
# AUTO GENERATED LIVE EVENT
|
3
|
+
# This was auto generated by the CanvasSync Gem.
|
4
|
+
# You can customize it as needed, but make sure you test
|
5
|
+
# any changes you make to the auto generated methods.
|
6
|
+
#
|
7
|
+
|
8
|
+
|
9
|
+
module LiveEvents
|
10
|
+
class CourseSectionCreatedEvent < LiveEvents::CourseSectionEvent
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# #
|
2
|
+
# AUTO GENERATED LIVE EVENT
|
3
|
+
# This was auto generated by the CanvasSync Gem.
|
4
|
+
# You can customize it as needed, but make sure you test
|
5
|
+
# any changes you make to the auto generated methods.
|
6
|
+
#
|
7
|
+
|
8
|
+
|
9
|
+
module LiveEvents
|
10
|
+
class CourseSectionEvent < LiveEvents::BaseEvent
|
11
|
+
# The following is provided in the live events call:
|
12
|
+
# {
|
13
|
+
# course_section_id: section.id,
|
14
|
+
# sis_source_id: section.sis_source_id,
|
15
|
+
# sis_batch_id: section.sis_batch_id,
|
16
|
+
# course_id: section.course_id,
|
17
|
+
# root_account_id: section.root_account_id,
|
18
|
+
# enrollment_term_id: section.enrollment_term_id,
|
19
|
+
# name: section.name,
|
20
|
+
# default_section: section.default_section,
|
21
|
+
# accepting_enrollments: section.accepting_enrollments,
|
22
|
+
# can_manually_enroll: section.can_manually_enroll,
|
23
|
+
# start_at: section.start_at,
|
24
|
+
# end_at: section.end_at,
|
25
|
+
# workflow_state: section.workflow_state,
|
26
|
+
# restrict_enrollments_to_section_dates: section.restrict_enrollments_to_section_dates,
|
27
|
+
# nonxlist_course_id: section.nonxlist_course_id,
|
28
|
+
# stuck_sis_fields: section.stuck_sis_fields,
|
29
|
+
# integration_id: section.integration_id
|
30
|
+
# }
|
31
|
+
|
32
|
+
def perform(_event_payload)
|
33
|
+
super
|
34
|
+
attrs = {
|
35
|
+
canvas_section_id: local_canvas_id(payload[:course_section_id]),
|
36
|
+
canvas_course_id: local_canvas_id(payload[:course_id]),
|
37
|
+
name: payload[:name],
|
38
|
+
status: payload[:workflow_state],
|
39
|
+
start_date: payload[:start_at],
|
40
|
+
end_date: payload[:end_at],
|
41
|
+
canvas_nonxlist_course_id: payload[:nonxlist_course_id],
|
42
|
+
}
|
43
|
+
create_or_update(attrs)
|
44
|
+
end
|
45
|
+
|
46
|
+
private
|
47
|
+
|
48
|
+
def create_or_update(attrs)
|
49
|
+
section = Section.where(canvas_section_id: attrs[:canvas_section_id]).first_or_initialize
|
50
|
+
section.assign_attributes(attrs)
|
51
|
+
section.save!
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# #
|
2
|
+
# AUTO GENERATED LIVE EVENT
|
3
|
+
# This was auto generated by the CanvasSync Gem.
|
4
|
+
# You can customize it as needed, but make sure you test
|
5
|
+
# any changes you make to the auto generated methods.
|
6
|
+
#
|
7
|
+
|
8
|
+
|
9
|
+
module LiveEvents
|
10
|
+
class CourseSectionUpdatedEvent < LiveEvents::CourseSectionEvent
|
11
|
+
end
|
12
|
+
end
|
@@ -8,31 +8,33 @@
|
|
8
8
|
|
9
9
|
module LiveEvents
|
10
10
|
class UserEvent < LiveEvents::BaseEvent
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
11
|
+
# The following is provided in the live events call:
|
12
|
+
# {
|
13
|
+
# user_id: user.global_id,
|
14
|
+
# uuid: user.uuid,
|
15
|
+
# name: user.name,
|
16
|
+
# short_name: user.short_name,
|
17
|
+
# workflow_state: user.workflow_state,
|
18
|
+
# created_at: user.created_at,
|
19
|
+
# updated_at: user.updated_at
|
20
|
+
# }
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
22
|
+
def perform(event_payload)
|
23
|
+
super
|
24
|
+
attrs = {
|
25
|
+
canvas_user_id: local_canvas_id(payload[:user_id]),
|
26
|
+
full_name: payload[:name],
|
27
|
+
status: payload[:workflow_state],
|
28
|
+
}
|
29
|
+
create_or_update(attrs)
|
30
|
+
end
|
30
31
|
|
31
|
-
|
32
|
+
private
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
34
|
+
def create_or_update(attrs)
|
35
|
+
user = User.where(canvas_user_id: attrs[:canvas_user_id]).first_or_initialize
|
36
|
+
user.assign_attributes(attrs)
|
37
|
+
user.save!
|
38
|
+
end
|
37
39
|
end
|
38
40
|
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: 20180605172338) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "plpgsql"
|
@@ -99,6 +99,7 @@ ActiveRecord::Schema.define(version: 20180411215633) do
|
|
99
99
|
t.integer "position"
|
100
100
|
t.string "content_type"
|
101
101
|
t.bigint "content_id"
|
102
|
+
t.bigint "canvas_assignment_id"
|
102
103
|
t.string "workflow_state"
|
103
104
|
t.datetime "created_at", null: false
|
104
105
|
t.datetime "updated_at", null: false
|
@@ -223,6 +224,8 @@ ActiveRecord::Schema.define(version: 20180411215633) do
|
|
223
224
|
t.string "last_name"
|
224
225
|
t.string "status"
|
225
226
|
t.string "login_id"
|
227
|
+
t.string "full_name"
|
228
|
+
t.string "sortable_name"
|
226
229
|
t.datetime "created_at", null: false
|
227
230
|
t.datetime "updated_at", null: false
|
228
231
|
t.index ["canvas_user_id"], name: "index_users_on_canvas_user_id", unique: true
|
@@ -3285,3 +3285,780 @@ Migrating to CreateContextModuleItems (20180411215633)
|
|
3285
3285
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
3286
3286
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
3287
3287
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3288
|
+
[1m[35m (5.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3289
|
+
[1m[35m (14.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3290
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3291
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3292
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3293
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3294
|
+
[1m[35m (235.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
3295
|
+
[1m[35m (174.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
3296
|
+
[1m[35m (157.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
3297
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3298
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
3299
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3300
|
+
Migrating to CreateEnrollments (20170905192509)
|
3301
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3302
|
+
[1m[35m (26.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
|
3303
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
3304
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
3305
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
3306
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
3307
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3308
|
+
Migrating to CreateTerms (20170906193506)
|
3309
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
3310
|
+
[1m[35m (17.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
|
3311
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
3312
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
3313
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3314
|
+
Migrating to CreateCourses (20170914181345)
|
3315
|
+
[1m[35m (6.4ms)[0m [1m[35mBEGIN[0m
|
3316
|
+
[1m[35m (18.7ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3317
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
3318
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
3319
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3320
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
3321
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3322
|
+
[1m[35m (5.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
|
3323
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
3324
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3325
|
+
Migrating to CreateSections (20171107213207)
|
3326
|
+
[1m[35m (11.3ms)[0m [1m[35mBEGIN[0m
|
3327
|
+
[1m[35m (17.7ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3328
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
3329
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
3330
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
3331
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3332
|
+
Migrating to CreateRoles (20180103162102)
|
3333
|
+
[1m[35m (6.1ms)[0m [1m[35mBEGIN[0m
|
3334
|
+
[1m[35m (17.0ms)[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
|
3335
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
3336
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
3337
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3338
|
+
Migrating to CreateAdmins (20180109210452)
|
3339
|
+
[1m[35m (10.1ms)[0m [1m[35mBEGIN[0m
|
3340
|
+
[1m[35m (40.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
|
3341
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
3342
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
3343
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3344
|
+
Migrating to CreateAssignments (20180215214227)
|
3345
|
+
[1m[35m (5.7ms)[0m [1m[35mBEGIN[0m
|
3346
|
+
[1m[35m (18.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
|
3347
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
3348
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
3349
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
3350
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3351
|
+
Migrating to CreateSubmissions (20180216171618)
|
3352
|
+
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
3353
|
+
[1m[35m (23.0ms)[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
|
3354
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
3355
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
3356
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
3357
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
3358
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
3359
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3360
|
+
Migrating to CreateAccounts (20180220172559)
|
3361
|
+
[1m[35m (5.8ms)[0m [1m[35mBEGIN[0m
|
3362
|
+
[1m[35m (23.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
|
3363
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
3364
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
3365
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3366
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
3367
|
+
[1m[35m (10.8ms)[0m [1m[35mBEGIN[0m
|
3368
|
+
[1m[35m (18.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
|
3369
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
3370
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
3371
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
3372
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3373
|
+
Migrating to CreateContextModules (20180411215348)
|
3374
|
+
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
3375
|
+
[1m[35m (22.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, "workflow_state" character varying, "deleted_at" timestamp, "unlock_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3376
|
+
[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
|
3377
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
3378
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215348"]]
|
3379
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3380
|
+
Migrating to CreateContextModuleItems (20180411215633)
|
3381
|
+
[1m[35m (11.8ms)[0m [1m[35mBEGIN[0m
|
3382
|
+
[1m[35m (16.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
|
3383
|
+
[1m[35m (1.7ms)[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
|
3384
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_id" ON "context_module_items" ("canvas_context_module_id")[0m
|
3385
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215633"]]
|
3386
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3387
|
+
Migrating to CreateUsers (20180509194201)
|
3388
|
+
[1m[35m (6.1ms)[0m [1m[35mBEGIN[0m
|
3389
|
+
[1m[35m (47.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, "full_name" character varying, "sortable_name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3390
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
3391
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180509194201"]]
|
3392
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3393
|
+
[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]]
|
3394
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3395
|
+
[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-05-09 19:42:23.235418"], ["updated_at", "2018-05-09 19:42:23.235418"]]
|
3396
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3397
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
3398
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3399
|
+
[1m[35m (7.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3400
|
+
[1m[35m (7.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3401
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3402
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3403
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3404
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3405
|
+
[1m[35m (203.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
3406
|
+
[1m[35m (198.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
3407
|
+
[1m[35m (26.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
3408
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3409
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
3410
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3411
|
+
Migrating to CreateEnrollments (20170905192509)
|
3412
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3413
|
+
[1m[35m (18.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
|
3414
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
3415
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
3416
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
3417
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
3418
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
3419
|
+
Migrating to CreateTerms (20170906193506)
|
3420
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3421
|
+
[1m[35m (7.0ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3422
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
3423
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
3424
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3425
|
+
Migrating to CreateCourses (20170914181345)
|
3426
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3427
|
+
[1m[35m (6.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
|
3428
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
3429
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
3430
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3431
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
3432
|
+
[1m[35m (6.1ms)[0m [1m[35mBEGIN[0m
|
3433
|
+
[1m[35m (18.9ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3434
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
3435
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
3436
|
+
Migrating to CreateSections (20171107213207)
|
3437
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3438
|
+
[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
|
3439
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
3440
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
3441
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
3442
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3443
|
+
Migrating to CreateRoles (20180103162102)
|
3444
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3445
|
+
[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
|
3446
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
3447
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
3448
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3449
|
+
Migrating to CreateAdmins (20180109210452)
|
3450
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3451
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3452
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
3453
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
3454
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3455
|
+
Migrating to CreateAssignments (20180215214227)
|
3456
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3457
|
+
[1m[35m (5.5ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" 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
|
3458
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
3459
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
3460
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
3461
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3462
|
+
Migrating to CreateSubmissions (20180216171618)
|
3463
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3464
|
+
[1m[35m (5.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
|
3465
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
3466
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
3467
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
3468
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
3469
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
3470
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3471
|
+
Migrating to CreateAccounts (20180220172559)
|
3472
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3473
|
+
[1m[35m (5.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
|
3474
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
3475
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
3476
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3477
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
3478
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3479
|
+
[1m[35m (5.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
|
3480
|
+
[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
|
3481
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
3482
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
3483
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3484
|
+
Migrating to CreateContextModules (20180411215348)
|
3485
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3486
|
+
[1m[35m (5.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
|
3487
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
3488
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
3489
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215348"]]
|
3490
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3491
|
+
Migrating to CreateContextModuleItems (20180411215633)
|
3492
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3493
|
+
[1m[35m (6.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
|
3494
|
+
[1m[35m (2.0ms)[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
|
3495
|
+
[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
|
3496
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215633"]]
|
3497
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3498
|
+
Migrating to CreateUsers (20180509194201)
|
3499
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3500
|
+
[1m[35m (5.3ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "full_name" character varying, "sortable_name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3501
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
3502
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180509194201"]]
|
3503
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3504
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
3505
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3506
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-05-09 19:47:48.559079"], ["updated_at", "2018-05-09 19:47:48.559079"]]
|
3507
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3508
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
3509
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3510
|
+
[1m[35m (2.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3511
|
+
[1m[35m (8.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3512
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3513
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3514
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3515
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3516
|
+
[1m[35m (336.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
3517
|
+
[1m[35m (137.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
3518
|
+
[1m[35m (23.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
3519
|
+
[1m[35m (5.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
|
3520
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
3521
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3522
|
+
Migrating to CreateEnrollments (20170905192509)
|
3523
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3524
|
+
[1m[35m (18.4ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3525
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
3526
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
3527
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
3528
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
3529
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3530
|
+
Migrating to CreateTerms (20170906193506)
|
3531
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3532
|
+
[1m[35m (5.4ms)[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
|
3533
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
3534
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
3535
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
3536
|
+
Migrating to CreateCourses (20170914181345)
|
3537
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3538
|
+
[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
|
3539
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
3540
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
3541
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3542
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
3543
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
3544
|
+
[1m[35m (22.9ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3545
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
3546
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
3547
|
+
Migrating to CreateSections (20171107213207)
|
3548
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3549
|
+
[1m[35m (7.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
|
3550
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
3551
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
3552
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
3553
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3554
|
+
Migrating to CreateRoles (20180103162102)
|
3555
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3556
|
+
[1m[35m (5.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
|
3557
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
3558
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
3559
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3560
|
+
Migrating to CreateAdmins (20180109210452)
|
3561
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3562
|
+
[1m[35m (6.6ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3563
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
3564
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
3565
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3566
|
+
Migrating to CreateAssignments (20180215214227)
|
3567
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3568
|
+
[1m[35m (6.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
|
3569
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
3570
|
+
[1m[35m (2.7ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
3571
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
3572
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3573
|
+
Migrating to CreateSubmissions (20180216171618)
|
3574
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3575
|
+
[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
|
3576
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
3577
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
3578
|
+
[1m[35m (8.5ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
3579
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
3580
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
3581
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
3582
|
+
Migrating to CreateAccounts (20180220172559)
|
3583
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3584
|
+
[1m[35m (7.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
|
3585
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
3586
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
3587
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3588
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
3589
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3590
|
+
[1m[35m (5.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
|
3591
|
+
[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
|
3592
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
3593
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
3594
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
3595
|
+
Migrating to CreateContextModules (20180411215348)
|
3596
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3597
|
+
[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
|
3598
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
3599
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
3600
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215348"]]
|
3601
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
3602
|
+
Migrating to CreateContextModuleItems (20180411215633)
|
3603
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3604
|
+
[1m[35m (5.4ms)[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
|
3605
|
+
[1m[35m (1.9ms)[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
|
3606
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_id" ON "context_module_items" ("canvas_context_module_id")[0m
|
3607
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215633"]]
|
3608
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3609
|
+
Migrating to CreateUsers (20180509194201)
|
3610
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3611
|
+
[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, "full_name" character varying, "sortable_name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3612
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
3613
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180509194201"]]
|
3614
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3615
|
+
[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]]
|
3616
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3617
|
+
[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-05-09 20:00:06.309383"], ["updated_at", "2018-05-09 20:00:06.309383"]]
|
3618
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3619
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
3620
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3621
|
+
[1m[35m (2.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3622
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3623
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3624
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3625
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3626
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3627
|
+
[1m[35m (205.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
3628
|
+
[1m[35m (207.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
3629
|
+
[1m[35m (24.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
3630
|
+
[1m[35m (5.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
|
3631
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
3632
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3633
|
+
Migrating to CreateEnrollments (20170905192509)
|
3634
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3635
|
+
[1m[35m (6.9ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3636
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
3637
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
3638
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
3639
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
3640
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3641
|
+
Migrating to CreateTerms (20170906193506)
|
3642
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3643
|
+
[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
|
3644
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
3645
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
3646
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3647
|
+
Migrating to CreateCourses (20170914181345)
|
3648
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3649
|
+
[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
|
3650
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
3651
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
3652
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3653
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
3654
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3655
|
+
[1m[35m (4.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
|
3656
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
3657
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3658
|
+
Migrating to CreateSections (20171107213207)
|
3659
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3660
|
+
[1m[35m (5.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
|
3661
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
3662
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
3663
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
3664
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3665
|
+
Migrating to CreateRoles (20180103162102)
|
3666
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3667
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3668
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
3669
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
3670
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3671
|
+
Migrating to CreateAdmins (20180109210452)
|
3672
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3673
|
+
[1m[35m (4.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
|
3674
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
3675
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
3676
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3677
|
+
Migrating to CreateAssignments (20180215214227)
|
3678
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3679
|
+
[1m[35m (5.4ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" character varying, "canvas_assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3680
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
3681
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
3682
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
3683
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3684
|
+
Migrating to CreateSubmissions (20180216171618)
|
3685
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3686
|
+
[1m[35m (5.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
|
3687
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
3688
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
3689
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
3690
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
3691
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
3692
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3693
|
+
Migrating to CreateAccounts (20180220172559)
|
3694
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3695
|
+
[1m[35m (4.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
|
3696
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
3697
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
3698
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3699
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
3700
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3701
|
+
[1m[35m (5.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
|
3702
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
3703
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
3704
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
3705
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3706
|
+
Migrating to CreateContextModules (20180411215348)
|
3707
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3708
|
+
[1m[35m (5.0ms)[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
|
3709
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
3710
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
3711
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215348"]]
|
3712
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
3713
|
+
Migrating to CreateContextModuleItems (20180411215633)
|
3714
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3715
|
+
[1m[35m (5.0ms)[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
|
3716
|
+
[1m[35m (1.7ms)[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
|
3717
|
+
[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
|
3718
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215633"]]
|
3719
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3720
|
+
Migrating to CreateUsers (20180509194201)
|
3721
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3722
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "full_name" character varying, "sortable_name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3723
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
3724
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180509194201"]]
|
3725
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3726
|
+
[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]]
|
3727
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3728
|
+
[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-05-09 20:00:56.923493"], ["updated_at", "2018-05-09 20:00:56.923493"]]
|
3729
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3730
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
3731
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3732
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3733
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3734
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3735
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3736
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3737
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3738
|
+
[1m[35m (202.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
3739
|
+
[1m[35m (156.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
3740
|
+
[1m[35m (26.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
3741
|
+
[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
|
3742
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
3743
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3744
|
+
Migrating to CreateEnrollments (20170905192509)
|
3745
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3746
|
+
[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
|
3747
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
3748
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
3749
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
3750
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
3751
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3752
|
+
Migrating to CreateTerms (20170906193506)
|
3753
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3754
|
+
[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
|
3755
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
3756
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
3757
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3758
|
+
Migrating to CreateCourses (20170914181345)
|
3759
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3760
|
+
[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
|
3761
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
3762
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
3763
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
3764
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
3765
|
+
[1m[35m (5.9ms)[0m [1m[35mBEGIN[0m
|
3766
|
+
[1m[35m (19.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
|
3767
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
3768
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
3769
|
+
Migrating to CreateSections (20171107213207)
|
3770
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3771
|
+
[1m[35m (6.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
|
3772
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
3773
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
3774
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
3775
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3776
|
+
Migrating to CreateRoles (20180103162102)
|
3777
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3778
|
+
[1m[35m (6.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
|
3779
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
3780
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
3781
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3782
|
+
Migrating to CreateAdmins (20180109210452)
|
3783
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3784
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3785
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
3786
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
3787
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
3788
|
+
Migrating to CreateAssignments (20180215214227)
|
3789
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3790
|
+
[1m[35m (6.3ms)[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
|
3791
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
3792
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
3793
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
3794
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3795
|
+
Migrating to CreateSubmissions (20180216171618)
|
3796
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3797
|
+
[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
|
3798
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
3799
|
+
[1m[35m (2.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
3800
|
+
[1m[35m (2.4ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
3801
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
3802
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
3803
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3804
|
+
Migrating to CreateAccounts (20180220172559)
|
3805
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3806
|
+
[1m[35m (5.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
|
3807
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
3808
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
3809
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3810
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
3811
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3812
|
+
[1m[35m (5.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
|
3813
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
3814
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
3815
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
3816
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3817
|
+
Migrating to CreateContextModules (20180411215348)
|
3818
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3819
|
+
[1m[35m (4.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
|
3820
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
3821
|
+
[1m[35m (3.2ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
3822
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215348"]]
|
3823
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3824
|
+
Migrating to CreateContextModuleItems (20180411215633)
|
3825
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3826
|
+
[1m[35m (6.1ms)[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
|
3827
|
+
[1m[35m (2.0ms)[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
|
3828
|
+
[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
|
3829
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215633"]]
|
3830
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3831
|
+
Migrating to CreateUsers (20180509194201)
|
3832
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3833
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "full_name" character varying, "sortable_name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3834
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
3835
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180509194201"]]
|
3836
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3837
|
+
[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]]
|
3838
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3839
|
+
[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-05-09 20:14:57.166038"], ["updated_at", "2018-05-09 20:14:57.166038"]]
|
3840
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3841
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
3842
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3843
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3844
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3845
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3846
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3847
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3848
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3849
|
+
[1m[35m (199.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
3850
|
+
[1m[35m (196.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
3851
|
+
[1m[35m (18.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
3852
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3853
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
3854
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3855
|
+
Migrating to CreateEnrollments (20170905192509)
|
3856
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3857
|
+
[1m[35m (5.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
|
3858
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
3859
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
3860
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
3861
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
3862
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3863
|
+
Migrating to CreateTerms (20170906193506)
|
3864
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3865
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3866
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
3867
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
3868
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3869
|
+
Migrating to CreateCourses (20170914181345)
|
3870
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3871
|
+
[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
|
3872
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
3873
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
3874
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3875
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
3876
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3877
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3878
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
3879
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3880
|
+
Migrating to CreateSections (20171107213207)
|
3881
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3882
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3883
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
3884
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
3885
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
3886
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3887
|
+
Migrating to CreateRoles (20180103162102)
|
3888
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3889
|
+
[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
|
3890
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
3891
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
3892
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3893
|
+
Migrating to CreateAdmins (20180109210452)
|
3894
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3895
|
+
[1m[35m (5.4ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3896
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
3897
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
3898
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
3899
|
+
Migrating to CreateAssignments (20180215214227)
|
3900
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3901
|
+
[1m[35m (5.3ms)[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
|
3902
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
3903
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
3904
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
3905
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3906
|
+
Migrating to CreateSubmissions (20180216171618)
|
3907
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3908
|
+
[1m[35m (4.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
|
3909
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
3910
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
3911
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
3912
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
3913
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
3914
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3915
|
+
Migrating to CreateAccounts (20180220172559)
|
3916
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3917
|
+
[1m[35m (5.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
|
3918
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
3919
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
3920
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3921
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
3922
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3923
|
+
[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
|
3924
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignment_groups_on_canvas_assignment_group_id" ON "assignment_groups" ("canvas_assignment_group_id")[0m
|
3925
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
3926
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
3927
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3928
|
+
Migrating to CreateContextModules (20180411215348)
|
3929
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3930
|
+
[1m[35m (4.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
|
3931
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
3932
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
3933
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215348"]]
|
3934
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3935
|
+
Migrating to CreateContextModuleItems (20180411215633)
|
3936
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3937
|
+
[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
|
3938
|
+
[1m[35m (1.7ms)[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
|
3939
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_id" ON "context_module_items" ("canvas_context_module_id")[0m
|
3940
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215633"]]
|
3941
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3942
|
+
Migrating to CreateUsers (20180509194201)
|
3943
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3944
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "full_name" character varying, "sortable_name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3945
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
3946
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180509194201"]]
|
3947
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3948
|
+
[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]]
|
3949
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3950
|
+
[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-05-09 20:22:57.744067"], ["updated_at", "2018-05-09 20:22:57.744067"]]
|
3951
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
3952
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
3953
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3954
|
+
[1m[35m (5.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3955
|
+
[1m[35m (9.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3956
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3957
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3958
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3959
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
3960
|
+
[1m[35m (210.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
3961
|
+
[1m[35m (204.3ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
3962
|
+
[1m[35m (14.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
3963
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3964
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
3965
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3966
|
+
Migrating to CreateEnrollments (20170905192509)
|
3967
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3968
|
+
[1m[35m (17.9ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3969
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
3970
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
3971
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
3972
|
+
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
3973
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3974
|
+
Migrating to CreateTerms (20170906193506)
|
3975
|
+
[1m[35m (11.7ms)[0m [1m[35mBEGIN[0m
|
3976
|
+
[1m[35m (17.2ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3977
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
3978
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
3979
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3980
|
+
Migrating to CreateCourses (20170914181345)
|
3981
|
+
[1m[35m (5.6ms)[0m [1m[35mBEGIN[0m
|
3982
|
+
[1m[35m (22.7ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3983
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
3984
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
3985
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3986
|
+
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
3987
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3988
|
+
[1m[35m (5.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
|
3989
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
3990
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
3991
|
+
Migrating to CreateSections (20171107213207)
|
3992
|
+
[1m[35m (5.4ms)[0m [1m[35mBEGIN[0m
|
3993
|
+
[1m[35m (23.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
|
3994
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
3995
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
3996
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
3997
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
3998
|
+
Migrating to CreateRoles (20180103162102)
|
3999
|
+
[1m[35m (5.5ms)[0m [1m[35mBEGIN[0m
|
4000
|
+
[1m[35m (18.0ms)[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
|
4001
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
4002
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
4003
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4004
|
+
Migrating to CreateAdmins (20180109210452)
|
4005
|
+
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
4006
|
+
[1m[35m (20.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
|
4007
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
4008
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
4009
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4010
|
+
Migrating to CreateAssignments (20180215214227)
|
4011
|
+
[1m[35m (6.0ms)[0m [1m[35mBEGIN[0m
|
4012
|
+
[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
|
4013
|
+
[1m[35m (5.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
4014
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
4015
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180215214227"]]
|
4016
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4017
|
+
Migrating to CreateSubmissions (20180216171618)
|
4018
|
+
[1m[35m (5.5ms)[0m [1m[35mBEGIN[0m
|
4019
|
+
[1m[35m (17.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
|
4020
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
4021
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
4022
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
4023
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
4024
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180216171618"]]
|
4025
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
4026
|
+
Migrating to CreateAccounts (20180220172559)
|
4027
|
+
[1m[35m (10.2ms)[0m [1m[35mBEGIN[0m
|
4028
|
+
[1m[35m (17.5ms)[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
|
4029
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_accounts_on_canvas_account_id" ON "accounts" ("canvas_account_id")[0m
|
4030
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180220172559"]]
|
4031
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4032
|
+
Migrating to CreateAssignmentGroups (20180222163506)
|
4033
|
+
[1m[35m (10.7ms)[0m [1m[35mBEGIN[0m
|
4034
|
+
[1m[35m (16.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
|
4035
|
+
[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
|
4036
|
+
[1m[35m (3.0ms)[0m [1m[35mCREATE INDEX "index_assignment_groups_on_canvas_course_id" ON "assignment_groups" ("canvas_course_id")[0m
|
4037
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180222163506"]]
|
4038
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
4039
|
+
Migrating to CreateContextModules (20180411215348)
|
4040
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4041
|
+
[1m[35m (23.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
|
4042
|
+
[1m[35m (3.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_context_modules_on_canvas_context_module_id" ON "context_modules" ("canvas_context_module_id")[0m
|
4043
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE INDEX "index_context_modules_on_context" ON "context_modules" ("canvas_context_id", "canvas_context_type")[0m
|
4044
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180411215348"]]
|
4045
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4046
|
+
Migrating to CreateUsers (20180509194201)
|
4047
|
+
[1m[35m (6.3ms)[0m [1m[35mBEGIN[0m
|
4048
|
+
[1m[35m (28.5ms)[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, "full_name" character varying, "sortable_name" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4049
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
4050
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180509194201"]]
|
4051
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4052
|
+
Migrating to CreateContextModuleItems (20180605172338)
|
4053
|
+
[1m[35m (10.7ms)[0m [1m[35mBEGIN[0m
|
4054
|
+
[1m[35m (16.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, "canvas_assignment_id" bigint, "workflow_state" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4055
|
+
[1m[35m (1.6ms)[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
|
4056
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "index_context_module_items_on_canvas_context_module_id" ON "context_module_items" ("canvas_context_module_id")[0m
|
4057
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180605172338"]]
|
4058
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4059
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
4060
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
4061
|
+
[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-06-05 17:23:59.459154"], ["updated_at", "2018-06-05 17:23:59.459154"]]
|
4062
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
4063
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
4064
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|