mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-14 09:15:54 -07:00
swap around schools and district to not be namespaced
This commit is contained in:
parent
865b7b17af
commit
7f69cda710
15 changed files with 67 additions and 57 deletions
|
|
@ -1,6 +1,7 @@
|
|||
module Dashboard
|
||||
class School < ApplicationRecord
|
||||
belongs_to :dashboard_district, class_name: "Dashboard::District"
|
||||
self.table_name = "schools"
|
||||
belongs_to :district, class_name: "District", primary_key: :id
|
||||
|
||||
has_many :dashboard_survey_item_responses, dependent: :delete_all
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue