Sha256: ca16850db236a0129515a739cbf9ff980c3907102bda6e2f7123f230bb83d1ed

Contents?: true

Size: 710 Bytes

Versions: 15

Compression:

Stored size: 710 Bytes

Contents

<%= autogenerated_migration_warning %>

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

15 entries across 15 versions & 1 rubygems

Version Path
canvas_sync-0.6.0 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.5.4 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.5.3 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.5.2 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.5.1 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.4.1 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.4.0 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.3.23 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.3.22 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.3.21 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.3.20 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.3.19 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.3.18 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.3.17 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.3.16 lib/canvas_sync/generators/templates/models/create_submissions.rb