This model will store the forms that challenge managers create, edit and publish for evaluation of their challenges.
Attributes
attribute
type
options
evaluation_form_id
:id
belongs_to :evaluation_form
title
string
null: false
description
string
null: false
points_or_weight
small_int
null: false
scoring_type
enum(:numeric, :rating, :binary)
default :numeric
option_range_start
small_int
default: 0
option_range_start
small_int
default: 4 (? check on this)
option_labels
json
[]
Validations
title, description, evaluation_form_id are required
<evaluation_form_id, title> are unique? (can't have the same title for different criteria on the same form)
Tests
[ ] Add a factory helper for conveniently adding criteria of different kinds to forms.
[ ] Add specs for creating, updating, destroying, validating
[ ] Criteria for eval forms with weighted scoring must add up to 100
Description
This model will store the forms that challenge managers create, edit and publish for evaluation of their challenges.
Attributes
Validations title, description, evaluation_form_id are required <evaluation_form_id, title> are unique? (can't have the same title for different criteria on the same form)
Tests