gabrielshufelt / Real-Ratings-SOEN-341_Project_F24

0 stars 1 forks source link

Create Evaluation Model #11

Closed gabrielshufelt closed 4 weeks ago

gabrielshufelt commented 1 month ago

Refer to this to create a model: Generating a model in Rails

Evaluation model should include following fields:

status:string                   # either pending, or completed
date_completed:date
project_id:integer
student_id:integer              # used for teachers to see which student completed this evaluation
cooperation_rating:float
conceptual_rating:float
practical_rating:float
work_ethic_rating:float
comment:string

The comment field is optional, so make sure to use Rails Validations to make the presence optional.