Add WorkItem model for Problem sheets and equivalent

This commit is contained in:
2023-10-07 15:41:32 +01:00
parent 328616d55f
commit f121c990e8
5 changed files with 43 additions and 1 deletions
@@ -0,0 +1,11 @@
class CreateWorkItems < ActiveRecord::Migration[7.1]
def change
create_table :work_items do |t|
t.string :title, null: false
t.references :course, null: false, foreign_key: true
t.datetime :due_date, null: false
t.timestamps
end
end
end