sqm-dashboards/app/models/student.rb
rebuilt 105f30f220 Change race score calculations so the average bubbles up through survey_items
-> scales -> measure.
Precalculate averages for performance.
2022-08-10 09:58:11 -07:00

7 lines
199 B
Ruby

class Student < ApplicationRecord
has_many :survey_item_responses
has_many :student_races
has_and_belongs_to_many :races, join_table: :student_races
encrypts :lasid, deterministic: true
end