Sha256: 089cf95b069e77f515d71bc1517d5a86d2e7d3fd1e739d9b14a07305cdfc0ccd

Contents?: true

Size: 711 Bytes

Versions: 131

Compression:

Stored size: 711 Bytes

Contents

# <%= autogenerated_migration_warning %>

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 :due_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

131 entries across 131 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.8 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.6 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.5 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.4 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.3 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.2 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.1 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.0 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.0.beta8 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.0.beta7 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.0.beta6 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.0.beta5 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.0.beta4 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.0.beta3 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.0.beta2 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.22.0.beta1 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.21.1 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.21.1.beta1 lib/canvas_sync/generators/templates/migrations/create_submissions.rb
canvas_sync-0.21.0 lib/canvas_sync/generators/templates/migrations/create_submissions.rb