Sha256: 8114a2240cc237c5f4dac1bc8d23e32cd5dd52dfc7f4a5295663577a51681b40
Contents?: true
Size: 739 Bytes
Versions: 27
Compression:
Stored size: 739 Bytes
Contents
class CreateCoalescingPandaSubmissions < CoalescingPanda::MiscHelper::MigrationClass def change create_table :coalescing_panda_submissions do |t| t.belongs_to :coalescing_panda_user, null: false t.belongs_to :coalescing_panda_assignment, null: false t.string :url t.string :grade t.string :score t.datetime :submitted_at t.string :workflow_state t.string :canvas_submission_id, null: false t.timestamps end add_index :coalescing_panda_submissions, [:coalescing_panda_user_id, :coalescing_panda_assignment_id, :canvas_submission_id], name: :index_submissions_user_and_assignment, unique: true add_index :coalescing_panda_submissions, :canvas_submission_id end end
Version data entries
27 entries across 27 versions & 1 rubygems