fix boston usage

This commit is contained in:
rebuilt 2023-02-27 12:48:14 -08:00
parent 045bd15485
commit d9c47dbc4d

View file

@ -13,8 +13,7 @@ class SurveyItemResponse < ActiveRecord::Base
has_one :measure, through: :survey_item
scope :exclude_boston, lambda {
boston = District.find_by_name('Boston')
where.not(school: boston.schools) if boston.present?
where.not(school: District.boston.schools) if District.boston.present?
}
scope :averages_for_grade, lambda { |survey_items, school, academic_year, grade|