Sha256: e267fddff8f6e251a66940d23d30f5b0d18132d9b3584808894798a75ae15685

Contents?: true

Size: 851 Bytes

Versions: 11

Compression:

Stored size: 851 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_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.float :score
      t.float :points_possible
      t.boolean :excused
      t.string :workflow_state

      t.timestamps
    end

    add_index :submissions, :canvas_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

11 entries across 11 versions & 1 rubygems

Version Path
canvas_sync-0.11.1 spec/dummy/db/migrate/20190702203627_create_submissions.rb
canvas_sync-0.15.1 spec/dummy/db/migrate/20190702203627_create_submissions.rb
canvas_sync-0.15.0 spec/dummy/db/migrate/20190702203627_create_submissions.rb
canvas_sync-0.14.0 spec/dummy/db/migrate/20190702203627_create_submissions.rb
canvas_sync-0.13.0 spec/dummy/db/migrate/20190702203627_create_submissions.rb
canvas_sync-0.12.0 spec/dummy/db/migrate/20190702203627_create_submissions.rb
canvas_sync-0.11.0 spec/dummy/db/migrate/20190702203627_create_submissions.rb
canvas_sync-0.10.6 spec/dummy/db/migrate/20190702203627_create_submissions.rb
canvas_sync-0.10.5 spec/dummy/db/migrate/20190702203627_create_submissions.rb
canvas_sync-0.10.4 spec/dummy/db/migrate/20190702203627_create_submissions.rb
canvas_sync-0.10.3 spec/dummy/db/migrate/20190702203627_create_submissions.rb