Sha256: 278b6add81cf8acf4269e93fbfe8db64b4900cbcea3165f89fe980b1e4bf8471

Contents?: true

Size: 643 Bytes

Versions: 8

Compression:

Stored size: 643 Bytes

Contents

class CreateCoalescingPandaSubmissions < ActiveRecord::Migration
  def change
    create_table :coalescing_panda_submissions do |t|
      t.belongs_to :coalescing_panda_user
      t.belongs_to :coalescing_panda_assignment
      t.string :url
      t.string :grade
      t.string :score
      t.datetime :submitted_at
      t.string :workflow_state
      t.string :canvas_submission_id

      t.timestamps
    end

    add_index :coalescing_panda_submissions, [:coalescing_panda_user_id, :coalescing_panda_assignment_id], name: :index_submissions_user_and_assignment
    add_index :coalescing_panda_submissions, :canvas_submission_id
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coalescing_panda-3.1.5 db/migrate/20141120152546_create_coalescing_panda_submissions.rb
coalescing_panda-3.1.4 db/migrate/20141120152546_create_coalescing_panda_submissions.rb
coalescing_panda-3.1.3 db/migrate/20141120152546_create_coalescing_panda_submissions.rb
coalescing_panda-3.1.2 db/migrate/20141120152546_create_coalescing_panda_submissions.rb
coalescing_panda-3.1.1 db/migrate/20141120152546_create_coalescing_panda_submissions.rb
coalescing_panda-3.1.0 db/migrate/20141120152546_create_coalescing_panda_submissions.rb
coalescing_panda-3.0.1 db/migrate/20141120152546_create_coalescing_panda_submissions.rb
coalescing_panda-3.0.0 db/migrate/20141120152546_create_coalescing_panda_submissions.rb