Sha256: 90a104388d58834e78f5f18a4eb3ed5c4cebf5619eb80eb32a681b932216f8ee

Contents?: true

Size: 875 Bytes

Versions: 33

Compression:

Stored size: 875 Bytes

Contents

#
# AUTO GENERATED MIGRATION
# This migration was auto generated by the CanvasSync Gem.
# You can add new columns to this table, but removing or
# re-naming ones created here may break Canvas Syncing.
#


class CreateSubmissions < ActiveRecord::Migration[5.1]
  def change
    create_table :submissions do |t|
      t.bigint :canvas_submission_id, null: false
      t.bigint :canvas_course_id
      t.bigint :canvas_assignment_id
      t.bigint :canvas_user_id
      t.datetime :submitted_at
      t.datetime :graded_at
      t.integer :score
      t.integer :points_possible
      t.boolean :excused
      t.string :workflow_state

      t.timestamps
    end

    add_index :submissions, :canvas_submission_id, unique: true
    add_index :submissions, :canvas_assignment_id
    add_index :submissions, :canvas_course_id
    add_index :submissions, :canvas_user_id
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
canvas_sync-0.9.4 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.9.3 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.9.2 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.9.1 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.9.0 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.8.4 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.8.3 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.8.2 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.8.1 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.8.0 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.7.3 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.7.2 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.7.1 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.7.0 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.6.4 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.6.3 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.6.2 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.6.1 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.6.0 spec/dummy/db/migrate/20180216171618_create_submissions.rb
canvas_sync-0.5.4 spec/dummy/db/migrate/20180216171618_create_submissions.rb