20180403104728_create_submissions.rb 243 B

1234567891011
  1. class CreateSubmissions < ActiveRecord::Migration[5.1]
  2. def change
  3. create_table :submissions do |t|
  4. t.string :title
  5. t.string :description
  6. t.belongs_to :assignment, foreign_key: true
  7. t.timestamps
  8. end
  9. end
  10. end