chore: show all disaggregations without error on analyze page

This commit is contained in:
Nelson Jovel 2024-01-31 15:06:16 -08:00
parent 25e1a940b3
commit 8a8bd4846c
7 changed files with 20 additions and 17 deletions

View file

@ -1,8 +1,9 @@
module Dashboard
class Race < ApplicationRecord
include FriendlyId
has_and_belongs_to_many :students, join_table: :dashboard_student_races, class_name: "Student",
foreign_key: :dashboard_student_id, association_foreign_key: :dashboard_student_id
has_many :student_races, class_name: "StudentRace", foreign_key: :dashboard_race_id
has_many :students, through: :student_races, foreign_key: :dashboard_student_id
friendly_id :designation, use: [:slugged]