mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-07 21:38:14 -08:00
chore: update schools and districts to correct association between them
This commit is contained in:
parent
3093d9236a
commit
0f525cf2e8
10 changed files with 12 additions and 28 deletions
|
|
@ -1,8 +1,6 @@
|
|||
module Dashboard
|
||||
class District < ApplicationRecord
|
||||
self.table_name = "districts"
|
||||
has_many :schools, class_name: "Dashboard::School"
|
||||
has_many :schools, class_name: "Dashboard::School"
|
||||
has_many :schools, class_name: "School", foreign_key: :id
|
||||
|
||||
validates :name, presence: true
|
||||
|
||||
|
|
@ -17,3 +15,4 @@ module Dashboard
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue