mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-13 00:50:27 -07:00
chore: seed academic years, districts and schools
This commit is contained in:
parent
30f9f05a63
commit
cd7b05df73
94 changed files with 697970 additions and 14 deletions
|
|
@ -1,7 +1,7 @@
|
|||
module Dashboard
|
||||
class Respondent < ApplicationRecord
|
||||
belongs_to :school
|
||||
belongs_to :dashboard_academic_year
|
||||
belongs_to :school, class_name: "School", foreign_key: :dashboard_school_id
|
||||
belongs_to :academic_year, class_name: "AcademicYear", foreign_key: :dashboard_academic_year_id
|
||||
|
||||
validates :school, uniqueness: { scope: :academic_year }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue