You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
module Dashboard
|
|
class Student < ApplicationRecord
|
|
has_many :student_races, class_name: "StudentRace", foreign_key: :dashboard_student_id
|
|
has_many :races, through: :student_races, foreign_key: :dashboard_race_id
|
|
|
|
encrypts :lasid, deterministic: true
|
|
end
|
|
end
|