Sha256: 23152148c2fb1e8939f698c82773d1d8a93f4a785d2ec8424c750bee7da6d29e

Contents?: true

Size: 706 Bytes

Versions: 18

Compression:

Stored size: 706 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.float :score
      t.float :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

18 entries across 18 versions & 1 rubygems

Version Path
canvas_sync-0.9.4 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.9.3 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.9.2 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.9.1 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.9.0 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.8.4 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.8.3 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.8.2 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.8.1 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.8.0 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.7.3 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.7.2 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.7.1 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.7.0 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.6.4 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.6.3 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.6.2 lib/canvas_sync/generators/templates/models/create_submissions.rb
canvas_sync-0.6.1 lib/canvas_sync/generators/templates/models/create_submissions.rb