mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-07 21:38:14 -08:00
chore: ensure likert score ranges from 1 to 5
This commit is contained in:
parent
9f6e8a5933
commit
3093d9236a
1 changed files with 2 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ module Dashboard
|
|||
|
||||
has_one :dashboard_measure, through: :dashboard_survey_item
|
||||
|
||||
validates :likert_score, numericality: { greater_than: 0, less_than_or_equal_to: 5 }
|
||||
|
||||
scope :exclude_boston, lambda {
|
||||
includes(school: :district).where.not("district.name": "Boston")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue