parent
25e1a940b3
commit
8a8bd4846c
@ -1,6 +1,6 @@
|
||||
module Dashboard
|
||||
class StudentRace < ApplicationRecord
|
||||
belongs_to :dashboard_student
|
||||
belongs_to :dashboard_race
|
||||
belongs_to :student, optional: true, class_name: "Student", foreign_key: :dashboard_student_id
|
||||
belongs_to :race, optional: true, class_name: "Race", foreign_key: :dashboard_race_id
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in new issue