canvas_sync 0.3.13 → 0.3.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +4 -1
- data/lib/canvas_sync.rb +3 -1
- data/lib/canvas_sync/generators/templates/models/assignment.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/course.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/create_submissions.rb +23 -0
- data/lib/canvas_sync/generators/templates/models/submission.rb +8 -0
- data/lib/canvas_sync/generators/templates/models/user.rb +1 -0
- data/lib/canvas_sync/jobs/sync_submissions_job.rb +28 -0
- data/lib/canvas_sync/processors/model_mappings.yml +28 -0
- data/lib/canvas_sync/processors/submissions_processor.rb +24 -0
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/canvas_sync/{models/assignments_spec.rb → assignment_spec.rb} +6 -0
- data/spec/canvas_sync/canvas_sync_spec.rb +15 -0
- data/spec/canvas_sync/jobs/sync_submissions_job_spec.rb +17 -0
- data/spec/canvas_sync/models/course_spec.rb +5 -0
- data/spec/canvas_sync/models/user_spec.rb +6 -0
- data/spec/canvas_sync/processors/submissions_processor_spec.rb +13 -0
- data/spec/canvas_sync/submission_spec.rb +31 -0
- data/spec/dummy/app/models/assignment.rb +1 -0
- data/spec/dummy/app/models/course.rb +1 -0
- data/spec/dummy/app/models/submission.rb +14 -0
- data/spec/dummy/app/models/user.rb +1 -0
- data/spec/dummy/db/migrate/20180213235544_create_submissions.rb +29 -0
- data/spec/dummy/db/schema.rb +18 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +389 -822
- data/spec/dummy/log/test.log +29886 -13563
- data/spec/factories/submission_factory.rb +9 -0
- data/spec/support/fixtures/reports/submissions.csv +3 -0
- metadata +23 -7
- data/spec/dummy/db/development.sqlite3 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ffcf605b5474780a893dd4cb81c60d39568e5198
|
4
|
+
data.tar.gz: d2e32471b37b95667680a17c4907c42ce6965bdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36943420c9986863bc1ae0f54b6cdf50ed284115c99d5bae5ba1421ed65dfada0adc4ba9943c4e6481e5e1eacec50407c103ce82d2bbb926535093d2ba5f0d92
|
7
|
+
data.tar.gz: 468ee9f16f45dd6cffb2779ea45a4f78b552c17ebb0de0cd4534711aec4c4f9f0a5ab5da38ae4f8cdf7eb812623c11e1591091319b55d2cbaafa834440429d8f
|
data/README.md
CHANGED
@@ -26,7 +26,10 @@ bundle exec rake db:migrate
|
|
26
26
|
|
27
27
|
For a list of currently supported models, see `CanvasSync::SUPPORTED_MODELS`.
|
28
28
|
|
29
|
-
Additionally, your Canvas instance must have the "Proserv Provisioning Report" enabled.
|
29
|
+
Additionally, your Canvas instance must have the "Proserv Provisioning Report" enabled.
|
30
|
+
- If you are syncing assignments the "Assignment Report" report must be enabled.
|
31
|
+
- If you are syncing submissions the "Student Submissions"
|
32
|
+
(proserv_student_submissions_csv) report must be enabled.
|
30
33
|
|
31
34
|
## Prerequisites
|
32
35
|
|
data/lib/canvas_sync.rb
CHANGED
@@ -7,6 +7,7 @@ require "canvas_sync/jobs/report_checker"
|
|
7
7
|
require "canvas_sync/jobs/report_processor_job"
|
8
8
|
require "canvas_sync/jobs/sync_provisioning_report_job"
|
9
9
|
require "canvas_sync/jobs/sync_assignments_job"
|
10
|
+
require "canvas_sync/jobs/sync_submissions_job"
|
10
11
|
require "canvas_sync/jobs/sync_terms_job"
|
11
12
|
require "canvas_sync/jobs/sync_users_job"
|
12
13
|
require "canvas_sync/jobs/sync_roles_job"
|
@@ -16,7 +17,7 @@ Dir[File.dirname(__FILE__) + "/canvas_sync/importers/*.rb"].each { |file| requi
|
|
16
17
|
Dir[File.dirname(__FILE__) + "/canvas_sync/generators/*.rb"].each { |file| require file }
|
17
18
|
|
18
19
|
module CanvasSync
|
19
|
-
SUPPORTED_MODELS = %w[users courses terms enrollments sections assignments roles admins xlist].freeze
|
20
|
+
SUPPORTED_MODELS = %w[users courses terms enrollments sections assignments submissions roles admins xlist].freeze
|
20
21
|
SUPPORTED_LIVE_EVENTS = %w[course enrollment submission assignment user syllabus grade].freeze
|
21
22
|
|
22
23
|
# Runs a standard provisioning sync job with no extra report types.
|
@@ -103,6 +104,7 @@ module CanvasSync
|
|
103
104
|
)
|
104
105
|
|
105
106
|
jobs.push(job: CanvasSync::Jobs::SyncAssignmentsJob.to_s, options: {}) if models.include?("assignments")
|
107
|
+
jobs.push(job: CanvasSync::Jobs::SyncSubmissionsJob.to_s, options: {}) if models.include?("submissions")
|
106
108
|
|
107
109
|
global_options = { legacy_support: legacy_support }
|
108
110
|
global_options[:account_id] = account_id if account_id.present?
|
@@ -3,4 +3,5 @@
|
|
3
3
|
class Assignment < ApplicationRecord
|
4
4
|
validates :canvas_assignment_id, uniqueness: true, presence: true
|
5
5
|
belongs_to :context, polymorphic: true, optional: true, primary_key: :canvas_course_id
|
6
|
+
has_many :submissions, primary_key: :canvas_assignment_id, foreign_key: :canvas_assignment_id
|
6
7
|
end
|
@@ -6,4 +6,5 @@ class Course < ApplicationRecord
|
|
6
6
|
has_many :enrollments, primary_key: :canvas_course_id, foreign_key: :canvas_course_id
|
7
7
|
has_many :sections, primary_key: :canvas_course_id, foreign_key: :canvas_course_id
|
8
8
|
has_many :assignments, as: :context, primary_key: :canvas_course_id
|
9
|
+
has_many :submissions, primary_key: :canvas_course_id, foreign_key: :canvas_course_id
|
9
10
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<%= autogenerated_migration_warning %>
|
2
|
+
|
3
|
+
class CreateSubmissions < ActiveRecord::Migration[5.1]
|
4
|
+
def change
|
5
|
+
create_table :submissions do |t|
|
6
|
+
t.bigint :canvas_submission_id, null: false
|
7
|
+
t.bigint :canvas_course_id
|
8
|
+
t.bigint :canvas_assignment_id
|
9
|
+
t.bigint :canvas_user_id
|
10
|
+
t.datetime :submitted_at
|
11
|
+
t.datetime :graded_at
|
12
|
+
t.integer :score
|
13
|
+
t.integer :points_possible
|
14
|
+
|
15
|
+
t.timestamps
|
16
|
+
end
|
17
|
+
|
18
|
+
add_index :submissions, :canvas_submission_id, unique: true
|
19
|
+
add_index :submissions, :canvas_assignment_id
|
20
|
+
add_index :submissions, :canvas_course_id
|
21
|
+
add_index :submissions, :canvas_user_id
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<%= autogenerated_model_warning %>
|
2
|
+
|
3
|
+
class Submission < ApplicationRecord
|
4
|
+
validates :canvas_submission_id, uniqueness: true, presence: true
|
5
|
+
belongs_to :assignment, primary_key: :canvas_assignment_id, foreign_key: :canvas_assignment_id, optional: true
|
6
|
+
belongs_to :user, primary_key: :canvas_user_id, foreign_key: :canvas_user_id, optional: true
|
7
|
+
belongs_to :course, primary_key: :canvas_course_id, foreign_key: :canvas_course_id, optional: true
|
8
|
+
end
|
@@ -5,4 +5,5 @@ class User < ApplicationRecord
|
|
5
5
|
has_many :enrollments, primary_key: :canvas_user_id, foreign_key: :canvas_user_id
|
6
6
|
has_many :admins, foreign_key: :canvas_user_id, primary_key: :canvas_user_id
|
7
7
|
has_many :admin_roles, through: :admins, source: :role
|
8
|
+
has_many :submissions, primary_key: :canvas_user_id, foreign_key: :canvas_user_id
|
8
9
|
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module CanvasSync
|
2
|
+
module Jobs
|
3
|
+
class SyncSubmissionsJob < ReportStarter
|
4
|
+
# Syncs Submissions
|
5
|
+
#
|
6
|
+
# Starts a report processor for the submission report
|
7
|
+
# (the proserv_student_submissions_csv report must be enabled)
|
8
|
+
#
|
9
|
+
# @param job_chain [Hash]
|
10
|
+
# @param options [Hash]
|
11
|
+
def perform(job_chain, _options)
|
12
|
+
report_params = if job_chain[:global_options][:term_id].present?
|
13
|
+
{ enrollment_term_id: job_chain[:global_options][:term_id] }
|
14
|
+
else
|
15
|
+
{}
|
16
|
+
end
|
17
|
+
|
18
|
+
super(
|
19
|
+
job_chain,
|
20
|
+
"proserv_student_submissions_csv",
|
21
|
+
report_params,
|
22
|
+
CanvasSync::Processors::SubmissionsProcessor.to_s,
|
23
|
+
{},
|
24
|
+
)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -186,3 +186,31 @@ assignments:
|
|
186
186
|
grading_standard_id:
|
187
187
|
database_column_name: grading_standard_id
|
188
188
|
type: integer
|
189
|
+
|
190
|
+
submissions:
|
191
|
+
conflict_target: submission_id
|
192
|
+
report_columns:
|
193
|
+
submission_id:
|
194
|
+
database_column_name: :canvas_submission_id
|
195
|
+
type: integer
|
196
|
+
canvas_user_id:
|
197
|
+
database_column_name: :canvas_user_id
|
198
|
+
type: integer
|
199
|
+
canvas_course_id:
|
200
|
+
database_column_name: :canvas_course_id
|
201
|
+
type: integer
|
202
|
+
assignment_id:
|
203
|
+
database_column_name: :canvas_assignment_id
|
204
|
+
type: integer
|
205
|
+
submission_date:
|
206
|
+
database_column_name: submitted_at
|
207
|
+
type: datetime
|
208
|
+
graded_date:
|
209
|
+
database_column_name: graded_at
|
210
|
+
type: datetime
|
211
|
+
score:
|
212
|
+
database_column_name: score
|
213
|
+
type: integer
|
214
|
+
points_possible:
|
215
|
+
database_column_name: points_possible
|
216
|
+
type: integer
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require_relative "./report_processor"
|
2
|
+
|
3
|
+
module CanvasSync
|
4
|
+
module Processors
|
5
|
+
# Processes a submissions report using the bulk importer.
|
6
|
+
#
|
7
|
+
# @param report_file_path [String]
|
8
|
+
# @param options [Hash]
|
9
|
+
class SubmissionsProcessor < ReportProcessor
|
10
|
+
def self.process(report_file_path, _options)
|
11
|
+
new(report_file_path)
|
12
|
+
end
|
13
|
+
|
14
|
+
def initialize(report_file_path)
|
15
|
+
CanvasSync::Importers::BulkImporter.import(
|
16
|
+
report_file_path,
|
17
|
+
mapping[:submissions][:report_columns],
|
18
|
+
Submission,
|
19
|
+
mapping[:submissions][:conflict_target].to_sym,
|
20
|
+
)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
data/lib/canvas_sync/version.rb
CHANGED
@@ -9,6 +9,12 @@ RSpec.describe Assignment, type: :model do
|
|
9
9
|
end
|
10
10
|
|
11
11
|
describe "associations" do
|
12
|
+
it do
|
13
|
+
should have_many(:submissions)
|
14
|
+
.with_primary_key(:canvas_assignment_id)
|
15
|
+
.with_foreign_key(:canvas_assignment_id)
|
16
|
+
end
|
17
|
+
|
12
18
|
describe "context" do
|
13
19
|
let!(:other_course) { FactoryGirl.create(:course) }
|
14
20
|
let!(:matching_course) { FactoryGirl.create(:course) }
|
@@ -121,6 +121,21 @@ RSpec.describe CanvasSync do
|
|
121
121
|
)
|
122
122
|
end
|
123
123
|
end
|
124
|
+
|
125
|
+
context "we are syncing submissions" do
|
126
|
+
it "appends the SyncSubmissionsJob" do
|
127
|
+
chain = CanvasSync.default_provisioning_report_chain(%w[users enrollments submissions])
|
128
|
+
|
129
|
+
expect(chain).to eq(
|
130
|
+
jobs: [
|
131
|
+
{ job: CanvasSync::Jobs::SyncTermsJob.to_s, options: {} },
|
132
|
+
{ job: CanvasSync::Jobs::SyncProvisioningReportJob.to_s, options: { term_scope: nil, models: %w[users enrollments submissions] } },
|
133
|
+
{ job: CanvasSync::Jobs::SyncSubmissionsJob.to_s, options: {} },
|
134
|
+
],
|
135
|
+
global_options: { legacy_support: false },
|
136
|
+
)
|
137
|
+
end
|
138
|
+
end
|
124
139
|
end
|
125
140
|
end
|
126
141
|
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe CanvasSync::Jobs::SyncSubmissionsJob do
|
4
|
+
describe "#perform" do
|
5
|
+
context "a term id is in the global_options" do
|
6
|
+
it "enqueues a ReportStarter for the proserv_student_submissions_csv for the given term" do
|
7
|
+
expect_any_instance_of(Bearcat::Client).to receive(:start_report)
|
8
|
+
.with("self", "proserv_student_submissions_csv", enrollment_term_id: 1)
|
9
|
+
.and_return("id" => 1)
|
10
|
+
|
11
|
+
expect(CanvasSync::Jobs::ReportChecker).to receive(:set).and_call_original
|
12
|
+
|
13
|
+
CanvasSync::Jobs::SyncSubmissionsJob.perform_now({ jobs: [], global_options: { term_id: 1 } }, {})
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -14,5 +14,11 @@ RSpec.describe User, type: :model do
|
|
14
14
|
.with_primary_key(:canvas_user_id)
|
15
15
|
.with_foreign_key(:canvas_user_id)
|
16
16
|
end
|
17
|
+
|
18
|
+
it do
|
19
|
+
should have_many(:submissions)
|
20
|
+
.with_primary_key(:canvas_user_id)
|
21
|
+
.with_foreign_key(:canvas_user_id)
|
22
|
+
end
|
17
23
|
end
|
18
24
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe CanvasSync::Processors::SubmissionsProcessor do
|
4
|
+
let(:subject) { CanvasSync::Processors::SubmissionsProcessor }
|
5
|
+
|
6
|
+
describe "#process" do
|
7
|
+
it "inserts submissions" do
|
8
|
+
expect {
|
9
|
+
subject.process("spec/support/fixtures/reports/submissions.csv", {})
|
10
|
+
}.to change { Submission.count }.by(2)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Submission, type: :model do
|
4
|
+
let(:subject) { FactoryGirl.create(:submission) }
|
5
|
+
|
6
|
+
describe "validations" do
|
7
|
+
it { should validate_presence_of(:canvas_submission_id) }
|
8
|
+
it { should validate_uniqueness_of(:canvas_submission_id) }
|
9
|
+
end
|
10
|
+
|
11
|
+
describe 'associations' do
|
12
|
+
it do
|
13
|
+
should belong_to(:user)
|
14
|
+
.with_primary_key(:canvas_user_id)
|
15
|
+
.with_foreign_key(:canvas_user_id)
|
16
|
+
end
|
17
|
+
|
18
|
+
it do
|
19
|
+
should belong_to(:assignment)
|
20
|
+
.with_primary_key(:canvas_assignment_id)
|
21
|
+
.with_foreign_key(:canvas_assignment_id)
|
22
|
+
end
|
23
|
+
|
24
|
+
it do
|
25
|
+
should belong_to(:course)
|
26
|
+
.with_primary_key(:canvas_course_id)
|
27
|
+
.with_foreign_key(:canvas_course_id)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
@@ -9,4 +9,5 @@
|
|
9
9
|
class Assignment < ApplicationRecord
|
10
10
|
validates :canvas_assignment_id, uniqueness: true, presence: true
|
11
11
|
belongs_to :context, polymorphic: true, optional: true, primary_key: :canvas_course_id
|
12
|
+
has_many :submissions, primary_key: :canvas_assignment_id, foreign_key: :canvas_assignment_id
|
12
13
|
end
|
@@ -12,4 +12,5 @@ class Course < ApplicationRecord
|
|
12
12
|
has_many :enrollments, primary_key: :canvas_course_id, foreign_key: :canvas_course_id
|
13
13
|
has_many :sections, primary_key: :canvas_course_id, foreign_key: :canvas_course_id
|
14
14
|
has_many :assignments, as: :context, primary_key: :canvas_course_id
|
15
|
+
has_many :submissions, primary_key: :canvas_course_id, foreign_key: :canvas_course_id
|
15
16
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
#
|
2
|
+
# AUTO GENERATED MODEL
|
3
|
+
# This model 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
|
+
class Submission < ApplicationRecord
|
10
|
+
validates :canvas_submission_id, uniqueness: true, presence: true
|
11
|
+
belongs_to :assignment, primary_key: :canvas_assignment_id, foreign_key: :canvas_assignment_id, optional: true
|
12
|
+
belongs_to :user, primary_key: :canvas_user_id, foreign_key: :canvas_user_id, optional: true
|
13
|
+
belongs_to :course, primary_key: :canvas_course_id, foreign_key: :canvas_course_id, optional: true
|
14
|
+
end
|
@@ -11,4 +11,5 @@ class User < ApplicationRecord
|
|
11
11
|
has_many :enrollments, primary_key: :canvas_user_id, foreign_key: :canvas_user_id
|
12
12
|
has_many :admins, foreign_key: :canvas_user_id, primary_key: :canvas_user_id
|
13
13
|
has_many :admin_roles, through: :admins, source: :role
|
14
|
+
has_many :submissions, primary_key: :canvas_user_id, foreign_key: :canvas_user_id
|
14
15
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
#
|
2
|
+
# AUTO GENERATED MIGRATION
|
3
|
+
# This migration was auto generated by the CanvasSync Gem.
|
4
|
+
# You can add new columns to this table, but removing or
|
5
|
+
# re-naming ones created here may break Canvas Syncing.
|
6
|
+
#
|
7
|
+
|
8
|
+
|
9
|
+
class CreateSubmissions < ActiveRecord::Migration[5.1]
|
10
|
+
def change
|
11
|
+
create_table :submissions do |t|
|
12
|
+
t.bigint :canvas_submission_id, null: false
|
13
|
+
t.bigint :canvas_course_id
|
14
|
+
t.bigint :canvas_assignment_id
|
15
|
+
t.bigint :canvas_user_id
|
16
|
+
t.datetime :submitted_at
|
17
|
+
t.datetime :graded_at
|
18
|
+
t.integer :score
|
19
|
+
t.integer :points_possible
|
20
|
+
|
21
|
+
t.timestamps
|
22
|
+
end
|
23
|
+
|
24
|
+
add_index :submissions, :canvas_submission_id, unique: true
|
25
|
+
add_index :submissions, :canvas_assignment_id
|
26
|
+
add_index :submissions, :canvas_course_id
|
27
|
+
add_index :submissions, :canvas_user_id
|
28
|
+
end
|
29
|
+
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: 20180213235544) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "plpgsql"
|
@@ -127,6 +127,23 @@ ActiveRecord::Schema.define(version: 20180212204530) do
|
|
127
127
|
t.index ["canvas_section_id"], name: "index_sections_on_canvas_section_id", unique: true
|
128
128
|
end
|
129
129
|
|
130
|
+
create_table "submissions", force: :cascade do |t|
|
131
|
+
t.bigint "canvas_submission_id", null: false
|
132
|
+
t.bigint "canvas_course_id"
|
133
|
+
t.bigint "canvas_assignment_id"
|
134
|
+
t.bigint "canvas_user_id"
|
135
|
+
t.datetime "submitted_at"
|
136
|
+
t.datetime "graded_at"
|
137
|
+
t.integer "score"
|
138
|
+
t.integer "points_possible"
|
139
|
+
t.datetime "created_at", null: false
|
140
|
+
t.datetime "updated_at", null: false
|
141
|
+
t.index ["canvas_assignment_id"], name: "index_submissions_on_canvas_assignment_id"
|
142
|
+
t.index ["canvas_course_id"], name: "index_submissions_on_canvas_course_id"
|
143
|
+
t.index ["canvas_submission_id"], name: "index_submissions_on_canvas_submission_id", unique: true
|
144
|
+
t.index ["canvas_user_id"], name: "index_submissions_on_canvas_user_id"
|
145
|
+
end
|
146
|
+
|
130
147
|
create_table "terms", force: :cascade do |t|
|
131
148
|
t.integer "canvas_term_id", null: false
|
132
149
|
t.string "name"
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
@@ -1,982 +1,549 @@
|
|
1
|
-
[1m[35m (
|
2
|
-
[1m[35m (
|
3
|
-
[1m[35m (
|
4
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
5
|
-
Migrating to CreateEnrollments (20170905192509)
|
6
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
7
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
8
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
9
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
10
|
-
FROM sqlite_master
|
11
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
12
|
-
UNION ALL
|
13
|
-
SELECT sql
|
14
|
-
FROM sqlite_temp_master
|
15
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
16
|
-
[0m
|
17
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
18
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
19
|
-
FROM sqlite_master
|
20
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
21
|
-
UNION ALL
|
22
|
-
SELECT sql
|
23
|
-
FROM sqlite_temp_master
|
24
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
25
|
-
[0m
|
26
|
-
[1m[35m (0.0ms)[0m [1m[34m SELECT sql
|
27
|
-
FROM sqlite_master
|
28
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
29
|
-
UNION ALL
|
30
|
-
SELECT sql
|
31
|
-
FROM sqlite_temp_master
|
32
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
33
|
-
[0m
|
34
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
35
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170905192509"]]
|
36
|
-
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
37
|
-
Migrating to CreateTerms (20170906193506)
|
38
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
39
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
40
|
-
[1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
41
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906193506"]]
|
42
|
-
[1m[35m (1.6ms)[0m [1m[36mcommit transaction[0m
|
43
|
-
Migrating to CreateSections (20170906203438)
|
44
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
45
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
46
|
-
[1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
47
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
48
|
-
FROM sqlite_master
|
49
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
50
|
-
UNION ALL
|
51
|
-
SELECT sql
|
52
|
-
FROM sqlite_temp_master
|
53
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
54
|
-
[0m
|
55
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
56
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906203438"]]
|
57
|
-
[1m[35m (1.2ms)[0m [1m[36mcommit transaction[0m
|
58
|
-
Migrating to CreateCourses (20170914181345)
|
59
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
60
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "status" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
61
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
62
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170914181345"]]
|
63
|
-
[1m[35m (1.4ms)[0m [1m[36mcommit transaction[0m
|
64
|
-
Migrating to CreateUsers (20170918221413)
|
65
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
66
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "login_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
67
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
68
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170918221413"]]
|
69
|
-
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
70
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
71
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
72
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-11-02 21:22:48.791273"], ["updated_at", "2017-11-02 21:22:48.791273"]]
|
73
|
-
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
74
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
75
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
76
|
-
FROM sqlite_master
|
77
|
-
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
78
|
-
UNION ALL
|
79
|
-
SELECT sql
|
80
|
-
FROM sqlite_temp_master
|
81
|
-
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
82
|
-
[0m
|
83
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
84
|
-
FROM sqlite_master
|
85
|
-
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
86
|
-
UNION ALL
|
87
|
-
SELECT sql
|
88
|
-
FROM sqlite_temp_master
|
89
|
-
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
90
|
-
[0m
|
91
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
92
|
-
FROM sqlite_master
|
93
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
94
|
-
UNION ALL
|
95
|
-
SELECT sql
|
96
|
-
FROM sqlite_temp_master
|
97
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
98
|
-
[0m
|
99
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
100
|
-
FROM sqlite_master
|
101
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
102
|
-
UNION ALL
|
103
|
-
SELECT sql
|
104
|
-
FROM sqlite_temp_master
|
105
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
106
|
-
[0m
|
107
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
108
|
-
FROM sqlite_master
|
109
|
-
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
110
|
-
UNION ALL
|
111
|
-
SELECT sql
|
112
|
-
FROM sqlite_temp_master
|
113
|
-
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
114
|
-
[0m
|
115
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
116
|
-
FROM sqlite_master
|
117
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
118
|
-
UNION ALL
|
119
|
-
SELECT sql
|
120
|
-
FROM sqlite_temp_master
|
121
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
122
|
-
[0m
|
123
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
124
|
-
FROM sqlite_master
|
125
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
126
|
-
UNION ALL
|
127
|
-
SELECT sql
|
128
|
-
FROM sqlite_temp_master
|
129
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
130
|
-
[0m
|
131
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
132
|
-
FROM sqlite_master
|
133
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
134
|
-
UNION ALL
|
135
|
-
SELECT sql
|
136
|
-
FROM sqlite_temp_master
|
137
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
138
|
-
[0m
|
139
|
-
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
140
|
-
[1m[35m (0.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
141
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
142
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
143
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
144
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
145
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
146
|
-
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
147
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
148
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
149
|
-
Migrating to CreateEnrollments (20170905192509)
|
150
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
151
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
152
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
153
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
154
|
-
FROM sqlite_master
|
155
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
156
|
-
UNION ALL
|
157
|
-
SELECT sql
|
158
|
-
FROM sqlite_temp_master
|
159
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
160
|
-
[0m
|
161
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
162
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
163
|
-
FROM sqlite_master
|
164
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
165
|
-
UNION ALL
|
166
|
-
SELECT sql
|
167
|
-
FROM sqlite_temp_master
|
168
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
169
|
-
[0m
|
170
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
171
|
-
FROM sqlite_master
|
172
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
173
|
-
UNION ALL
|
174
|
-
SELECT sql
|
175
|
-
FROM sqlite_temp_master
|
176
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
177
|
-
[0m
|
178
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
179
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170905192509"]]
|
180
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
181
|
-
Migrating to CreateTerms (20170906193506)
|
182
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
183
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
184
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
185
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906193506"]]
|
186
|
-
[1m[35m (0.5ms)[0m [1m[36mcommit transaction[0m
|
187
|
-
Migrating to CreateSections (20170906203438)
|
188
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
189
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
190
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
191
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
192
|
-
FROM sqlite_master
|
193
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
194
|
-
UNION ALL
|
195
|
-
SELECT sql
|
196
|
-
FROM sqlite_temp_master
|
197
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
198
|
-
[0m
|
199
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
200
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906203438"]]
|
201
|
-
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
202
|
-
Migrating to CreateCourses (20170914181345)
|
203
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
204
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "status" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
205
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
206
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170914181345"]]
|
207
|
-
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
208
|
-
Migrating to CreateUsers (20170918221413)
|
209
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
210
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "login_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
211
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
212
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170918221413"]]
|
213
|
-
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
214
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
215
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
216
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-11-02 21:23:44.534031"], ["updated_at", "2017-11-02 21:23:44.534031"]]
|
217
|
-
[1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
|
218
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
219
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
220
|
-
FROM sqlite_master
|
221
|
-
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
222
|
-
UNION ALL
|
223
|
-
SELECT sql
|
224
|
-
FROM sqlite_temp_master
|
225
|
-
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
226
|
-
[0m
|
227
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
228
|
-
FROM sqlite_master
|
229
|
-
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
230
|
-
UNION ALL
|
231
|
-
SELECT sql
|
232
|
-
FROM sqlite_temp_master
|
233
|
-
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
234
|
-
[0m
|
235
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
236
|
-
FROM sqlite_master
|
237
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
238
|
-
UNION ALL
|
239
|
-
SELECT sql
|
240
|
-
FROM sqlite_temp_master
|
241
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
242
|
-
[0m
|
243
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
244
|
-
FROM sqlite_master
|
245
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
246
|
-
UNION ALL
|
247
|
-
SELECT sql
|
248
|
-
FROM sqlite_temp_master
|
249
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
250
|
-
[0m
|
251
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
252
|
-
FROM sqlite_master
|
253
|
-
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
254
|
-
UNION ALL
|
255
|
-
SELECT sql
|
256
|
-
FROM sqlite_temp_master
|
257
|
-
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
258
|
-
[0m
|
259
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
260
|
-
FROM sqlite_master
|
261
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
262
|
-
UNION ALL
|
263
|
-
SELECT sql
|
264
|
-
FROM sqlite_temp_master
|
265
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
266
|
-
[0m
|
267
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
268
|
-
FROM sqlite_master
|
269
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
270
|
-
UNION ALL
|
271
|
-
SELECT sql
|
272
|
-
FROM sqlite_temp_master
|
273
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
274
|
-
[0m
|
275
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
276
|
-
FROM sqlite_master
|
277
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
278
|
-
UNION ALL
|
279
|
-
SELECT sql
|
280
|
-
FROM sqlite_temp_master
|
281
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
282
|
-
[0m
|
283
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
284
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
285
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
286
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
287
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
288
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]]
|
289
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
290
|
-
[1m[35m (6.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
291
|
-
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
292
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
293
|
-
Migrating to CreateEnrollments (20170905192509)
|
294
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
295
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" varchar, "canvas_user_id" bigint, "user_sis_id" varchar, "role" varchar, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" varchar, "status" varchar, "base_role_type" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
296
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
297
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
298
|
-
FROM sqlite_master
|
299
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
300
|
-
UNION ALL
|
301
|
-
SELECT sql
|
302
|
-
FROM sqlite_temp_master
|
303
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
304
|
-
[0m
|
305
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
306
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
307
|
-
FROM sqlite_master
|
308
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
309
|
-
UNION ALL
|
310
|
-
SELECT sql
|
311
|
-
FROM sqlite_temp_master
|
312
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
313
|
-
[0m
|
314
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
315
|
-
FROM sqlite_master
|
316
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
317
|
-
UNION ALL
|
318
|
-
SELECT sql
|
319
|
-
FROM sqlite_temp_master
|
320
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
321
|
-
[0m
|
322
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
323
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170905192509"]]
|
324
|
-
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
325
|
-
Migrating to CreateTerms (20170906193506)
|
326
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
327
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "terms" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_term_id" integer NOT NULL, "name" varchar, "start_at" datetime, "end_at" datetime, "workflow_state" varchar, "grading_period_group_id" integer, "sis_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
328
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
329
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906193506"]]
|
330
|
-
[1m[35m (1.5ms)[0m [1m[36mcommit transaction[0m
|
331
|
-
Migrating to CreateSections (20170906203438)
|
332
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
333
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "sections" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_section_id" bigint NOT NULL, "sis_id" varchar, "canvas_course_id" bigint, "name" varchar, "status" varchar, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
334
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
335
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
336
|
-
FROM sqlite_master
|
337
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
338
|
-
UNION ALL
|
339
|
-
SELECT sql
|
340
|
-
FROM sqlite_temp_master
|
341
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
342
|
-
[0m
|
343
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
344
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170906203438"]]
|
345
|
-
[1m[35m (1.3ms)[0m [1m[36mcommit transaction[0m
|
346
|
-
Migrating to CreateCourses (20170914181345)
|
347
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
348
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "courses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_course_id" bigint NOT NULL, "sis_id" varchar, "short_name" varchar, "long_name" varchar, "status" varchar, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" datetime, "end_date" datetime, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
349
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
350
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170914181345"]]
|
351
|
-
[1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
|
352
|
-
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
353
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
354
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "started_at" datetime, "completed_at" datetime, "exception" varchar, "backtrace" text, "job_class" varchar, "status" varchar, "metadata" text, "job_arguments" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
355
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170915210836"]]
|
356
|
-
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
357
|
-
Migrating to CreateUsers (20170918221413)
|
358
|
-
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
359
|
-
[1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "canvas_user_id" bigint NOT NULL, "sis_id" varchar, "email" varchar, "first_name" varchar, "last_name" varchar, "status" varchar, "login_id" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
360
|
-
[1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
361
|
-
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20170918221413"]]
|
362
|
-
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
363
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
364
|
-
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
365
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2017-11-02 21:24:18.830692"], ["updated_at", "2017-11-02 21:24:18.830692"]]
|
366
|
-
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
367
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
368
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
369
|
-
FROM sqlite_master
|
370
|
-
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
371
|
-
UNION ALL
|
372
|
-
SELECT sql
|
373
|
-
FROM sqlite_temp_master
|
374
|
-
WHERE name='index_courses_on_canvas_course_id' AND type='index'
|
375
|
-
[0m
|
376
|
-
[1m[35m (0.5ms)[0m [1m[34m SELECT sql
|
377
|
-
FROM sqlite_master
|
378
|
-
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
379
|
-
UNION ALL
|
380
|
-
SELECT sql
|
381
|
-
FROM sqlite_temp_master
|
382
|
-
WHERE name='index_enrollments_on_canvas_user_id' AND type='index'
|
383
|
-
[0m
|
384
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
385
|
-
FROM sqlite_master
|
386
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
387
|
-
UNION ALL
|
388
|
-
SELECT sql
|
389
|
-
FROM sqlite_temp_master
|
390
|
-
WHERE name='index_enrollments_on_canvas_course_id' AND type='index'
|
391
|
-
[0m
|
392
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
393
|
-
FROM sqlite_master
|
394
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
395
|
-
UNION ALL
|
396
|
-
SELECT sql
|
397
|
-
FROM sqlite_temp_master
|
398
|
-
WHERE name='index_enrollments_on_canvas_enrollment_id' AND type='index'
|
399
|
-
[0m
|
400
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
401
|
-
FROM sqlite_master
|
402
|
-
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
403
|
-
UNION ALL
|
404
|
-
SELECT sql
|
405
|
-
FROM sqlite_temp_master
|
406
|
-
WHERE name='index_sections_on_canvas_course_id' AND type='index'
|
407
|
-
[0m
|
408
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
409
|
-
FROM sqlite_master
|
410
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
411
|
-
UNION ALL
|
412
|
-
SELECT sql
|
413
|
-
FROM sqlite_temp_master
|
414
|
-
WHERE name='index_sections_on_canvas_section_id' AND type='index'
|
415
|
-
[0m
|
416
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
417
|
-
FROM sqlite_master
|
418
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
419
|
-
UNION ALL
|
420
|
-
SELECT sql
|
421
|
-
FROM sqlite_temp_master
|
422
|
-
WHERE name='index_terms_on_canvas_term_id' AND type='index'
|
423
|
-
[0m
|
424
|
-
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
425
|
-
FROM sqlite_master
|
426
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
427
|
-
UNION ALL
|
428
|
-
SELECT sql
|
429
|
-
FROM sqlite_temp_master
|
430
|
-
WHERE name='index_users_on_canvas_user_id' AND type='index'
|
431
|
-
[0m
|
432
|
-
[1m[35m (1.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
433
|
-
[1m[35m (225.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
434
|
-
[1m[35m (0.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
435
|
-
[1m[35m (0.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
436
|
-
[1m[35m (25.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
437
|
-
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
438
|
-
[1m[35m (0.7ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
1
|
+
[1m[35m (16.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2
|
+
[1m[35m (19.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
|
3
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
439
4
|
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
440
5
|
Migrating to CreateEnrollments (20170905192509)
|
441
|
-
[1m[35m (0.
|
442
|
-
[1m[35m (
|
443
|
-
[1m[35m (1.
|
444
|
-
[1m[35m (
|
445
|
-
[1m[35m (
|
6
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
7
|
+
[1m[35m (25.6ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
8
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
9
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
10
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
446
11
|
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
447
|
-
[1m[35m (0.
|
12
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
448
13
|
Migrating to CreateTerms (20170906193506)
|
449
|
-
[1m[35m (0.
|
450
|
-
[1m[35m (
|
14
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
15
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
451
16
|
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
452
17
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
453
|
-
[1m[35m (0.
|
18
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
454
19
|
Migrating to CreateCourses (20170914181345)
|
455
|
-
[1m[35m (0.
|
456
|
-
[1m[35m (4.
|
20
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
21
|
+
[1m[35m (4.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
|
457
22
|
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
458
|
-
[1m[35mSQL (0.
|
459
|
-
[1m[35m (0.
|
23
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
24
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
460
25
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
461
|
-
[1m[35m (
|
462
|
-
[1m[35m (
|
463
|
-
[1m[35mSQL (0.
|
464
|
-
[1m[35m (0.
|
26
|
+
[1m[35m (8.2ms)[0m [1m[35mBEGIN[0m
|
27
|
+
[1m[35m (41.4ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
28
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
29
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
465
30
|
Migrating to CreateUsers (20170918221413)
|
466
31
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
467
|
-
[1m[35m (4.
|
468
|
-
[1m[35m (1.
|
32
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
33
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
469
34
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
470
|
-
[1m[35m (1.
|
35
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
471
36
|
Migrating to CreateSections (20171107213207)
|
472
|
-
[1m[35m (0.
|
473
|
-
[1m[35m (4.
|
474
|
-
[1m[35m (1.
|
475
|
-
[1m[35m (1.
|
37
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
38
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
39
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
40
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
476
41
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
477
42
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
478
43
|
Migrating to CreateRoles (20180103162102)
|
479
|
-
[1m[35m (
|
480
|
-
[1m[35m (
|
481
|
-
[1m[35m (1.
|
44
|
+
[1m[35m (10.7ms)[0m [1m[35mBEGIN[0m
|
45
|
+
[1m[35m (16.2ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
46
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
482
47
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
483
|
-
[1m[35m (
|
48
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
49
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
50
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
51
|
+
[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-01-03 16:29:37.282741"], ["updated_at", "2018-01-03 16:29:37.282741"]]
|
52
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
53
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
54
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
55
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
56
|
+
[1m[35m (11.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
484
57
|
Migrating to CreateAdmins (20180109210452)
|
485
58
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
486
|
-
[1m[35m (
|
487
|
-
[1m[35m (1.
|
59
|
+
[1m[35m (23.4ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role" character varying, "canvas_role_id" bigint NOT NULL, "user" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
60
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
488
61
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
489
|
-
[1m[35m (
|
490
|
-
|
491
|
-
[1m[35m (0.
|
492
|
-
[1m[35m (
|
493
|
-
[1m[35m (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
494
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
495
|
-
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
496
|
-
Migrating to CreateAssignments (20180212180536)
|
497
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
498
|
-
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
62
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
63
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
64
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
65
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
499
66
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
500
|
-
[1m[35m (0.
|
501
|
-
[1m[35m (
|
502
|
-
Migrating to CreateAssignments (20180212180536)
|
503
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
504
|
-
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
505
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
506
|
-
[1m[35m (1.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
507
|
-
[1m[35m (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
67
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
68
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
508
69
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
509
|
-
[1m[35m (
|
510
|
-
Migrating to
|
511
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
512
|
-
[1m[35m (16.4ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" integer, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
513
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
514
|
-
[1m[35m (5.1ms)[0m [1m[31mROLLBACK[0m
|
515
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
516
|
-
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
517
|
-
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
518
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
519
|
-
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
520
|
-
Migrating to CreateAssignments (20180212180855)
|
521
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
522
|
-
[1m[35m (9.6ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" integer, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
523
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
524
|
-
[1m[35m (2.0ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
525
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212180855"]]
|
526
|
-
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
527
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
70
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
71
|
+
Migrating to CreateAdmins (20180109210452)
|
528
72
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
529
|
-
[1m[
|
530
|
-
[1m[35m (
|
73
|
+
[1m[35m (3.1ms)[0m [1m[35mDROP INDEX "index_admins_on_canvas_admin_id"[0m
|
74
|
+
[1m[35m (3.3ms)[0m [1m[35mDROP TABLE "admins"[0m
|
75
|
+
[1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20180109210452"]]
|
76
|
+
[1m[35m (6.0ms)[0m [1m[35mCOMMIT[0m
|
77
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
78
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
79
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
80
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
81
|
+
Migrating to CreateAdmins (20180109210452)
|
82
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
83
|
+
[1m[35m (10.8ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role" character varying, "canvas_role_id" bigint NOT NULL, "user" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
84
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
85
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
86
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
87
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
88
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
89
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
531
90
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
532
91
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
533
|
-
[1m[35m (
|
534
|
-
[1m[35m (
|
92
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
93
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
535
94
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
536
|
-
|
95
|
+
Migrating to CreateAdmins (20180109210452)
|
96
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
97
|
+
[1m[35m (0.5ms)[0m [1m[35mDROP INDEX "index_admins_on_canvas_admin_id"[0m
|
98
|
+
[1m[35m (0.7ms)[0m [1m[35mDROP TABLE "admins"[0m
|
99
|
+
[1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1[0m [["version", "20180109210452"]]
|
100
|
+
[1m[35m (22.8ms)[0m [1m[35mCOMMIT[0m
|
101
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
537
102
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
538
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT
|
539
|
-
[1m[35m (
|
540
|
-
[1m[35m (202.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
541
|
-
[1m[35m (23.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
542
|
-
[1m[35m (14.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
543
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
544
|
-
[1m[35m (2.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
545
|
-
Migrating to CreateEnrollments (20170905192509)
|
546
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
547
|
-
[1m[35m (18.6ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
548
|
-
[1m[35m (2.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
549
|
-
[1m[35m (7.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
550
|
-
[1m[35m (8.1ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
551
|
-
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
552
|
-
[1m[35m (4.6ms)[0m [1m[35mCOMMIT[0m
|
553
|
-
Migrating to CreateTerms (20170906193506)
|
554
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
555
|
-
[1m[35m (6.3ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
556
|
-
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
557
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
558
|
-
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
559
|
-
Migrating to CreateCourses (20170914181345)
|
560
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
561
|
-
[1m[35m (7.1ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
562
|
-
[1m[35m (7.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
563
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
564
|
-
[1m[35m (6.0ms)[0m [1m[35mCOMMIT[0m
|
565
|
-
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
566
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
567
|
-
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
568
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
569
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
570
|
-
Migrating to CreateUsers (20170918221413)
|
571
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
572
|
-
[1m[35m (6.3ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
573
|
-
[1m[35m (19.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
574
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
575
|
-
[1m[35m (5.5ms)[0m [1m[35mCOMMIT[0m
|
576
|
-
Migrating to CreateSections (20171107213207)
|
577
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
578
|
-
[1m[35m (6.0ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
579
|
-
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
580
|
-
[1m[35m (2.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
581
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
582
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
583
|
-
Migrating to CreateRoles (20180103162102)
|
584
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
585
|
-
[1m[35m (17.1ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
586
|
-
[1m[35m (35.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
587
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
588
|
-
[1m[35m (10.7ms)[0m [1m[35mCOMMIT[0m
|
103
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
104
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
589
105
|
Migrating to CreateAdmins (20180109210452)
|
590
|
-
[1m[35m (
|
591
|
-
[1m[35m (
|
592
|
-
[1m[35m (1.
|
106
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
107
|
+
[1m[35m (9.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
|
108
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
593
109
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
594
|
-
[1m[35m (
|
595
|
-
|
596
|
-
[1m[35m (0.
|
597
|
-
[1m[35m (
|
598
|
-
[1m[35m (
|
599
|
-
[1m[35m (
|
600
|
-
[1m[
|
601
|
-
[1m[35m (
|
602
|
-
[1m[36mActiveRecord::InternalMetadata Load (
|
603
|
-
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
604
|
-
[1m[
|
605
|
-
[1m[35m (0.
|
110
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
111
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
112
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
113
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
114
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
115
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
116
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
117
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
118
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
119
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
120
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
121
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
122
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
123
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
124
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
125
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
126
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
127
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
606
128
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
607
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
608
|
-
[1m[35m (18.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
609
|
-
[1m[35m (8.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
610
129
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
611
|
-
[1m[35m (
|
130
|
+
[1m[35m (2.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
131
|
+
[1m[35m (8.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
612
132
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
613
133
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
614
|
-
[1m[35m (
|
615
|
-
[1m[35m (
|
616
|
-
[1m[35m (
|
617
|
-
[1m[35m (
|
134
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
135
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
136
|
+
[1m[35m (165.7ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
137
|
+
[1m[35m (127.0ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
138
|
+
[1m[35m (28.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
139
|
+
[1m[35m (5.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
|
618
140
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
619
141
|
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
620
142
|
Migrating to CreateEnrollments (20170905192509)
|
621
143
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
622
|
-
[1m[35m (
|
623
|
-
[1m[35m (1.
|
624
|
-
[1m[35m (1.
|
625
|
-
[1m[35m (1.
|
626
|
-
[1m[35mSQL (0.
|
627
|
-
[1m[35m (0.
|
144
|
+
[1m[35m (5.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
|
145
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
146
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
147
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
148
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
149
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
628
150
|
Migrating to CreateTerms (20170906193506)
|
629
|
-
[1m[35m (0.
|
630
|
-
[1m[35m (
|
631
|
-
[1m[35m (1.
|
151
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
152
|
+
[1m[35m (3.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
|
153
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
632
154
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
633
155
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
634
156
|
Migrating to CreateCourses (20170914181345)
|
635
|
-
[1m[35m (0.
|
636
|
-
[1m[35m (
|
637
|
-
[1m[35m (1.
|
157
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
158
|
+
[1m[35m (3.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
|
159
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
638
160
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
639
|
-
[1m[35m (0.
|
161
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
640
162
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
641
|
-
[1m[35m (
|
642
|
-
[1m[35m (
|
643
|
-
[1m[35mSQL (0.
|
644
|
-
[1m[35m (0.
|
163
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
164
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
165
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
166
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
645
167
|
Migrating to CreateUsers (20170918221413)
|
646
168
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
647
|
-
[1m[35m (
|
648
|
-
[1m[35m (1.
|
169
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
170
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
649
171
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
650
|
-
[1m[35m (0.
|
172
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
651
173
|
Migrating to CreateSections (20171107213207)
|
652
|
-
[1m[35m (0.
|
653
|
-
[1m[35m (
|
654
|
-
[1m[35m (1.
|
655
|
-
[1m[35m (1.
|
656
|
-
[1m[35mSQL (0.
|
657
|
-
[1m[35m (0.
|
174
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
175
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
176
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
177
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
178
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
179
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
658
180
|
Migrating to CreateRoles (20180103162102)
|
659
|
-
[1m[35m (0.
|
660
|
-
[1m[35m (
|
661
|
-
[1m[35m (1.
|
662
|
-
[1m[35mSQL (0.
|
663
|
-
[1m[35m (0.
|
181
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
182
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
183
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
184
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
185
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
664
186
|
Migrating to CreateAdmins (20180109210452)
|
665
187
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
666
|
-
[1m[35m (
|
667
|
-
[1m[35m (1.
|
188
|
+
[1m[35m (3.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
|
189
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
668
190
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
669
|
-
[1m[35m (0.
|
670
|
-
Migrating to CreateAssignments (
|
191
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
192
|
+
Migrating to CreateAssignments (20180212204530)
|
671
193
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
672
|
-
[1m[35m (
|
673
|
-
[1m[35m (1.
|
674
|
-
[1m[35m (1.
|
675
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "
|
676
|
-
[1m[35m (0.
|
677
|
-
|
194
|
+
[1m[35m (4.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, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
195
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
196
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
197
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212204530"]]
|
198
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
199
|
+
Migrating to CreateSubmissions (20180213232302)
|
678
200
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
679
|
-
[1m[
|
201
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint NOT NULL, "canvas_assignment_id" bigint NOT NULL, "canvas_user_id" bigint NOT NULL, "submission_date" timestamp, "graded_date" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
202
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
203
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
204
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
205
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
206
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213232302"]]
|
680
207
|
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
681
|
-
[1m[
|
208
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
209
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
210
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-13 23:23:14.681205"], ["updated_at", "2018-02-13 23:23:14.681205"]]
|
211
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
212
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
682
213
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
683
214
|
[1m[35m (2.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
684
|
-
[1m[35m (
|
215
|
+
[1m[35m (15.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
216
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
217
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
685
218
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
686
|
-
[1m[35m (0.
|
687
|
-
[1m[35m (
|
688
|
-
[1m[35m (
|
689
|
-
[1m[35m (
|
690
|
-
[1m[35m (
|
691
|
-
[1m[35m (17.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
692
|
-
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
219
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
220
|
+
[1m[35m (138.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
221
|
+
[1m[35m (126.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
222
|
+
[1m[35m (14.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
223
|
+
[1m[35m (4.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
|
693
224
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
694
225
|
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
695
226
|
Migrating to CreateEnrollments (20170905192509)
|
696
227
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
697
|
-
[1m[35m (
|
698
|
-
[1m[35m (
|
699
|
-
[1m[35m (1.
|
700
|
-
[1m[35m (1.
|
701
|
-
[1m[35mSQL (0.
|
702
|
-
[1m[35m (0.
|
228
|
+
[1m[35m (15.6ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
229
|
+
[1m[35m (5.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
230
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
231
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
232
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
233
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
703
234
|
Migrating to CreateTerms (20170906193506)
|
704
235
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
705
|
-
[1m[35m (4.
|
706
|
-
[1m[35m (1.
|
236
|
+
[1m[35m (4.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
|
237
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
707
238
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
708
|
-
[1m[35m (0.
|
239
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
709
240
|
Migrating to CreateCourses (20170914181345)
|
710
241
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
711
|
-
[1m[35m (
|
712
|
-
[1m[35m (
|
713
|
-
[1m[35mSQL (0.
|
714
|
-
[1m[35m (0.
|
242
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
243
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
244
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
245
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
715
246
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
716
247
|
[1m[35m (6.1ms)[0m [1m[35mBEGIN[0m
|
717
|
-
[1m[35m (
|
718
|
-
[1m[35mSQL (0.
|
719
|
-
[1m[35m (0.
|
248
|
+
[1m[35m (21.2ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
249
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
250
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
720
251
|
Migrating to CreateUsers (20170918221413)
|
721
252
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
722
253
|
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
723
|
-
[1m[35m (1.
|
254
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
724
255
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
725
|
-
[1m[35m (0.
|
256
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
726
257
|
Migrating to CreateSections (20171107213207)
|
727
|
-
[1m[35m (0.
|
728
|
-
[1m[35m (
|
729
|
-
[1m[35m (1.
|
730
|
-
[1m[35m (1.
|
731
|
-
[1m[35mSQL (0.
|
732
|
-
[1m[35m (0.
|
258
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
259
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
260
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
261
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
262
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
263
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
733
264
|
Migrating to CreateRoles (20180103162102)
|
734
265
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
735
|
-
[1m[35m (4.
|
736
|
-
[1m[35m (1.
|
266
|
+
[1m[35m (4.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
|
267
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
737
268
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
738
|
-
[1m[35m (0.
|
269
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
739
270
|
Migrating to CreateAdmins (20180109210452)
|
740
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
741
|
-
[1m[35m (4.6ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
742
|
-
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
743
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
744
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
745
|
-
Migrating to CreateAssignments (20180212180855)
|
746
|
-
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
747
|
-
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "assignments" ("id" bigserial primary key, "canvas_assignment_id" bigint NOT NULL, "title" character varying, "description" text, "due_at" timestamp, "unlock_at" timestamp, "lock_at" timestamp, "points_possible" integer, "min_score" integer, "max_score" integer, "mastery_score" integer, "grading_type" character varying, "submission_types" character varying, "workflow_state" character varying, "context_id" integer, "context_type" integer, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
748
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
749
|
-
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
750
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212180855"]]
|
751
|
-
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
752
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
753
271
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
754
|
-
[1m[
|
755
|
-
[1m[35m (
|
272
|
+
[1m[35m (4.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
|
273
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
274
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
275
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
276
|
+
Migrating to CreateAssignments (20180212204530)
|
277
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
278
|
+
[1m[35m (4.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, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
279
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
280
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
281
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212204530"]]
|
282
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
283
|
+
Migrating to CreateSubmissions (20180213234230)
|
284
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
285
|
+
[1m[35m (2.6ms)[0m [1m[35mCREATE TABLE "submissions" ("id" bigserial primary key, "canvas_submission_id" bigint NOT NULL, "canvas_course_id" bigint NOT NULL, "canvas_assignment_id" bigint NOT NULL, "canvas_user_id" bigint NOT NULL, "submitted_at" timestamp, "graded_at" timestamp, "score" integer, "points_possible" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
286
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
287
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
288
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
289
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
290
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213234230"]]
|
291
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
292
|
+
[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]]
|
293
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
294
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-13 23:42:42.931090"], ["updated_at", "2018-02-13 23:42:42.931090"]]
|
295
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
756
296
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
757
297
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
758
|
-
[1m[35m (2.
|
759
|
-
[1m[35m (
|
298
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
299
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
760
300
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
761
|
-
[1m[35m (0.
|
301
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
762
302
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
763
303
|
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
764
|
-
[1m[35m (
|
765
|
-
[1m[35m (
|
766
|
-
[1m[35m (19.
|
767
|
-
[1m[35m (4.
|
304
|
+
[1m[35m (140.2ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
305
|
+
[1m[35m (126.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
306
|
+
[1m[35m (19.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
307
|
+
[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
|
768
308
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
769
|
-
[1m[35m (1.
|
309
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
770
310
|
Migrating to CreateEnrollments (20170905192509)
|
771
311
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
772
|
-
[1m[35m (
|
773
|
-
[1m[35m (
|
774
|
-
[1m[35m (
|
775
|
-
[1m[35m (
|
776
|
-
[1m[35mSQL (0.
|
777
|
-
[1m[35m (
|
312
|
+
[1m[35m (16.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
|
313
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
314
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
315
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
316
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
317
|
+
[1m[35m (5.9ms)[0m [1m[35mCOMMIT[0m
|
778
318
|
Migrating to CreateTerms (20170906193506)
|
779
|
-
[1m[35m (
|
780
|
-
[1m[35m (
|
781
|
-
[1m[35m (
|
782
|
-
[1m[35mSQL (0.
|
783
|
-
[1m[35m (0.
|
319
|
+
[1m[35m (9.7ms)[0m [1m[35mBEGIN[0m
|
320
|
+
[1m[35m (5.6ms)[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
|
321
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
322
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
323
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
784
324
|
Migrating to CreateCourses (20170914181345)
|
785
325
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
786
|
-
[1m[35m (
|
787
|
-
[1m[35m (
|
788
|
-
[1m[35mSQL (0.
|
789
|
-
[1m[35m (0.
|
326
|
+
[1m[35m (4.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
|
327
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
328
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
329
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
790
330
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
791
|
-
[1m[35m (
|
792
|
-
[1m[35m (17.
|
331
|
+
[1m[35m (5.7ms)[0m [1m[35mBEGIN[0m
|
332
|
+
[1m[35m (17.6ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
793
333
|
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
794
|
-
[1m[35m (0.
|
334
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
795
335
|
Migrating to CreateUsers (20170918221413)
|
796
|
-
[1m[35m (0.
|
797
|
-
[1m[35m (
|
798
|
-
[1m[35m (
|
336
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
337
|
+
[1m[35m (5.1ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
338
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
799
339
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
800
|
-
[1m[35m (0.
|
340
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
801
341
|
Migrating to CreateSections (20171107213207)
|
802
|
-
[1m[35m (0.
|
803
|
-
[1m[35m (
|
804
|
-
[1m[35m (1.
|
805
|
-
[1m[35m (1.
|
342
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
343
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
344
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
345
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
806
346
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
807
|
-
[1m[35m (0.
|
347
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
808
348
|
Migrating to CreateRoles (20180103162102)
|
809
349
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
810
|
-
[1m[35m (
|
811
|
-
[1m[35m (1.
|
350
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
351
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
812
352
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
813
|
-
[1m[35m (0.
|
353
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
814
354
|
Migrating to CreateAdmins (20180109210452)
|
815
|
-
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
816
|
-
[1m[35m (5.4ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
817
|
-
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
818
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
819
|
-
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
820
|
-
Migrating to CreateAssignments (20180212194212)
|
821
355
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
822
|
-
[1m[35m (
|
823
|
-
[1m[35m (
|
824
|
-
[1m[
|
825
|
-
[1m[
|
826
|
-
|
827
|
-
[1m[36mActiveRecord::InternalMetadata Load (1.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
356
|
+
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "admins" ("id" bigserial primary key, "canvas_admin_id" bigint NOT NULL, "role_name" character varying, "canvas_role_id" bigint NOT NULL, "user_data" json, "canvas_user_id" bigint NOT NULL, "workflow_state" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
357
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
358
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
359
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
360
|
+
Migrating to CreateAssignments (20180212204530)
|
828
361
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
829
|
-
[1m[
|
830
|
-
[1m[35m (
|
362
|
+
[1m[35m (4.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, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
363
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
364
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
365
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212204530"]]
|
366
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
367
|
+
Migrating to CreateSubmissions (20180213235544)
|
368
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
369
|
+
[1m[35m (2.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, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
370
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
371
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
372
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
373
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
374
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
375
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
376
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
377
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
378
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-13 23:55:56.536565"], ["updated_at", "2018-02-13 23:55:56.536565"]]
|
379
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
831
380
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
832
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
833
|
-
[1m[35m (4.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
834
|
-
[1m[35m (8.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
835
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
836
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
837
381
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
382
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
383
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
384
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
838
385
|
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
839
|
-
[1m[35m (
|
840
|
-
[1m[35m (
|
841
|
-
[1m[35m (
|
842
|
-
[1m[35m (
|
386
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
387
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
388
|
+
[1m[35m (125.9ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
389
|
+
[1m[35m (128.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
390
|
+
[1m[35m (13.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
391
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
843
392
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
844
|
-
[1m[35m (1.
|
393
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
845
394
|
Migrating to CreateEnrollments (20170905192509)
|
846
395
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
847
|
-
[1m[35m (
|
848
|
-
[1m[35m (
|
849
|
-
[1m[35m (
|
850
|
-
[1m[35m (1.
|
851
|
-
[1m[35mSQL (0.
|
852
|
-
[1m[35m (0.
|
396
|
+
[1m[35m (4.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
|
397
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
398
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
399
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
400
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
401
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
853
402
|
Migrating to CreateTerms (20170906193506)
|
854
|
-
[1m[35m (0.
|
855
|
-
[1m[35m (
|
856
|
-
[1m[35m (1.
|
403
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
404
|
+
[1m[35m (3.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
|
405
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
857
406
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
858
|
-
[1m[35m (0.
|
407
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
859
408
|
Migrating to CreateCourses (20170914181345)
|
860
409
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
861
|
-
[1m[35m (4.
|
862
|
-
[1m[35m (1.
|
410
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
411
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
863
412
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
864
|
-
[1m[35m (0.
|
413
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
865
414
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
866
|
-
[1m[35m (
|
867
|
-
[1m[35m (
|
415
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
416
|
+
[1m[35m (3.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
|
868
417
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
869
|
-
[1m[35m (0.
|
418
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
870
419
|
Migrating to CreateUsers (20170918221413)
|
871
420
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
872
|
-
[1m[35m (4.
|
873
|
-
[1m[35m (1.
|
421
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
422
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
874
423
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
875
|
-
[1m[35m (0.
|
424
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
876
425
|
Migrating to CreateSections (20171107213207)
|
877
426
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
878
|
-
[1m[35m (
|
879
|
-
[1m[35m (1.
|
880
|
-
[1m[35m (1.
|
427
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
428
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
429
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
881
430
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
882
|
-
[1m[35m (0.
|
431
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
883
432
|
Migrating to CreateRoles (20180103162102)
|
884
433
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
885
|
-
[1m[35m (4.
|
886
|
-
[1m[35m (1.
|
434
|
+
[1m[35m (4.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
|
435
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
887
436
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
888
|
-
[1m[35m (0.
|
437
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
889
438
|
Migrating to CreateAdmins (20180109210452)
|
890
|
-
[1m[35m (0.
|
891
|
-
[1m[35m (
|
892
|
-
[1m[35m (1.
|
893
|
-
[1m[35mSQL (0.
|
439
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
440
|
+
[1m[35m (3.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
|
441
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
442
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
894
443
|
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
895
|
-
Migrating to CreateAssignments (
|
444
|
+
Migrating to CreateAssignments (20180212204530)
|
896
445
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
897
|
-
[1m[35m (
|
446
|
+
[1m[35m (4.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, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
898
447
|
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
899
448
|
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
900
|
-
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "
|
901
|
-
[1m[35m (0.
|
902
|
-
|
449
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212204530"]]
|
450
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
451
|
+
Migrating to CreateSubmissions (20180213235544)
|
452
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
453
|
+
[1m[35m (2.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, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
454
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
455
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
456
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
457
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
458
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
459
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
460
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
903
461
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
904
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-
|
905
|
-
[1m[35m (0.
|
906
|
-
[1m[35m (0.
|
907
|
-
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
908
|
-
[1m[35m (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
909
|
-
[1m[35m (19.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
462
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-13 23:57:20.233403"], ["updated_at", "2018-02-13 23:57:20.233403"]]
|
463
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
464
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
910
465
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
911
|
-
[1m[35m (
|
466
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
467
|
+
[1m[35m (14.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
912
468
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
913
469
|
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
914
|
-
[1m[35m (
|
915
|
-
[1m[35m (
|
916
|
-
[1m[35m (
|
917
|
-
[1m[35m (
|
470
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
471
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
472
|
+
[1m[35m (127.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_development"[0m
|
473
|
+
[1m[35m (129.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "canvas_sync_test"[0m
|
474
|
+
[1m[35m (13.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
475
|
+
[1m[35m (3.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
|
918
476
|
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(1438354376499275445)[0m
|
919
|
-
[1m[35m (1.
|
477
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
920
478
|
Migrating to CreateEnrollments (20170905192509)
|
921
479
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
922
|
-
[1m[35m (
|
923
|
-
[1m[35m (1.
|
924
|
-
[1m[35m (1.
|
925
|
-
[1m[35m (1.
|
926
|
-
[1m[35mSQL (0.
|
927
|
-
[1m[35m (0.
|
480
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "enrollments" ("id" bigserial primary key, "canvas_enrollment_id" bigint NOT NULL, "canvas_course_id" bigint, "course_sis_id" character varying, "canvas_user_id" bigint, "user_sis_id" character varying, "role" character varying, "role_id" integer, "canvas_section_id" bigint, "section_sis_id" character varying, "status" character varying, "base_role_type" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
481
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_enrollments_on_canvas_enrollment_id" ON "enrollments" ("canvas_enrollment_id")[0m
|
482
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_course_id" ON "enrollments" ("canvas_course_id")[0m
|
483
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE INDEX "index_enrollments_on_canvas_user_id" ON "enrollments" ("canvas_user_id")[0m
|
484
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170905192509"]]
|
485
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
928
486
|
Migrating to CreateTerms (20170906193506)
|
929
487
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
930
|
-
[1m[35m (4.
|
931
|
-
[1m[35m (1.
|
488
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE TABLE "terms" ("id" bigserial primary key, "canvas_term_id" integer NOT NULL, "name" character varying, "start_at" timestamp, "end_at" timestamp, "workflow_state" character varying, "grading_period_group_id" integer, "sis_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
489
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_terms_on_canvas_term_id" ON "terms" ("canvas_term_id")[0m
|
932
490
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170906193506"]]
|
933
491
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
934
492
|
Migrating to CreateCourses (20170914181345)
|
935
493
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
936
|
-
[1m[35m (
|
937
|
-
[1m[35m (1.
|
494
|
+
[1m[35m (3.9ms)[0m [1m[35mCREATE TABLE "courses" ("id" bigserial primary key, "canvas_course_id" bigint NOT NULL, "sis_id" character varying, "short_name" character varying, "long_name" character varying, "status" character varying, "canvas_account_id" integer, "canvas_term_id" integer, "term_sis_id" integer, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
495
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_courses_on_canvas_course_id" ON "courses" ("canvas_course_id")[0m
|
938
496
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170914181345"]]
|
939
|
-
[1m[35m (0.
|
497
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
940
498
|
Migrating to CreateCanvasSyncJobLog (20170915210836)
|
941
|
-
[1m[35m (
|
942
|
-
[1m[35m (
|
499
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
500
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE TABLE "canvas_sync_job_logs" ("id" bigserial primary key, "started_at" timestamp, "completed_at" timestamp, "exception" character varying, "backtrace" text, "job_class" character varying, "status" character varying, "metadata" text, "job_arguments" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
943
501
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170915210836"]]
|
944
|
-
[1m[35m (0.
|
502
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
945
503
|
Migrating to CreateUsers (20170918221413)
|
946
|
-
[1m[35m (0.
|
947
|
-
[1m[35m (
|
948
|
-
[1m[35m (1.
|
504
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
505
|
+
[1m[35m (3.6ms)[0m [1m[35mCREATE TABLE "users" ("id" bigserial primary key, "canvas_user_id" bigint NOT NULL, "sis_id" character varying, "email" character varying, "first_name" character varying, "last_name" character varying, "status" character varying, "login_id" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
506
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_users_on_canvas_user_id" ON "users" ("canvas_user_id")[0m
|
949
507
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20170918221413"]]
|
950
|
-
[1m[35m (0.
|
508
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
951
509
|
Migrating to CreateSections (20171107213207)
|
952
|
-
[1m[35m (0.
|
510
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
953
511
|
[1m[35m (4.8ms)[0m [1m[35mCREATE TABLE "sections" ("id" bigserial primary key, "canvas_section_id" bigint NOT NULL, "sis_id" character varying, "canvas_course_id" bigint, "canvas_nonxlist_course_id" bigint, "name" character varying, "status" character varying, "start_date" timestamp, "end_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
954
|
-
[1m[35m (1.
|
955
|
-
[1m[35m (1.
|
512
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_sections_on_canvas_section_id" ON "sections" ("canvas_section_id")[0m
|
513
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_sections_on_canvas_course_id" ON "sections" ("canvas_course_id")[0m
|
956
514
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20171107213207"]]
|
957
515
|
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
958
516
|
Migrating to CreateRoles (20180103162102)
|
959
517
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
960
|
-
[1m[35m (
|
961
|
-
[1m[35m (1.
|
518
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE TABLE "roles" ("id" bigserial primary key, "canvas_role_id" integer NOT NULL, "label" character varying NOT NULL, "base_role_type" character varying NOT NULL, "account" json, "workflow_state" character varying NOT NULL, "permissions" json, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
519
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_roles_on_canvas_role_id" ON "roles" ("canvas_role_id")[0m
|
962
520
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180103162102"]]
|
963
|
-
[1m[35m (0.
|
521
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
964
522
|
Migrating to CreateAdmins (20180109210452)
|
965
523
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
966
|
-
[1m[35m (
|
967
|
-
[1m[35m (1.
|
524
|
+
[1m[35m (5.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
|
525
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_admins_on_canvas_admin_id" ON "admins" ("canvas_admin_id")[0m
|
968
526
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180109210452"]]
|
969
|
-
[1m[35m (0.
|
527
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
970
528
|
Migrating to CreateAssignments (20180212204530)
|
971
|
-
[1m[35m (0.
|
972
|
-
[1m[35m (
|
973
|
-
[1m[35m (1.
|
974
|
-
[1m[35m (1.
|
529
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
530
|
+
[1m[35m (4.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, "assignment_group_id" integer, "grading_scheme_id" integer, "grading_standard_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
531
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_assignments_on_canvas_assignment_id" ON "assignments" ("canvas_assignment_id")[0m
|
532
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE INDEX "index_assignments_on_context_id_and_context_type" ON "assignments" ("context_id", "context_type")[0m
|
975
533
|
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180212204530"]]
|
976
|
-
[1m[35m (0.
|
977
|
-
|
534
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
535
|
+
Migrating to CreateSubmissions (20180213235544)
|
536
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
537
|
+
[1m[35m (2.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, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
538
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_submissions_on_canvas_submission_id" ON "submissions" ("canvas_submission_id")[0m
|
539
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_assignment_id" ON "submissions" ("canvas_assignment_id")[0m
|
540
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_course_id" ON "submissions" ("canvas_course_id")[0m
|
541
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "index_submissions_on_canvas_user_id" ON "submissions" ("canvas_user_id")[0m
|
542
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20180213235544"]]
|
543
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
544
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
978
545
|
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
979
|
-
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-
|
980
|
-
[1m[35m (0.
|
981
|
-
[1m[35m (0.
|
546
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-02-14 00:29:53.010574"], ["updated_at", "2018-02-14 00:29:53.010574"]]
|
547
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
548
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_advisory_unlock(1438354376499275445)[0m
|
982
549
|
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|