GSA / Challenge_platform

The GSA Challenge.gov platform for managing challenges
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

Create EvaluationCriteria model & migration #159

Open stepchud opened 2 weeks ago

stepchud commented 2 weeks ago

Description

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