chore: update to rails 8

This commit is contained in:
Nelson Jovel 2024-11-20 15:16:22 -08:00
parent 1ce3ed5b6f
commit e4e1a2e96e
6 changed files with 86 additions and 92 deletions

View file

@ -9,13 +9,6 @@ class Score < ApplicationRecord
NIL_SCORE = Score.new(average: nil, meets_teacher_threshold: false, meets_student_threshold: false,
meets_admin_data_threshold: false)
enum group: {
all_students: 0,
race: 1,
grade: 2,
gender: 3
}
def in_zone?(zone:)
return false if average.nil? || average.is_a?(Float) && average.nan?