mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-07 13:38:12 -08:00
Able to create schools now
This commit is contained in:
parent
a4fddbeced
commit
865b7b17af
11 changed files with 26 additions and 19 deletions
|
|
@ -1,6 +1,6 @@
|
|||
module Dashboard
|
||||
class School < ApplicationRecord
|
||||
belongs_to :district, class_name: "Dashboard::District"
|
||||
belongs_to :dashboard_district, class_name: "Dashboard::District"
|
||||
|
||||
has_many :dashboard_survey_item_responses, dependent: :delete_all
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
module Dashboard
|
||||
class SurveyItem < ApplicationRecord
|
||||
belongs_to :dashboard_scale
|
||||
# belongs_to :dashboard_scale
|
||||
|
||||
has_one :dashboard_measure, through: dashboard_scale
|
||||
has_one :dashboard_subcategory, through: dashboard_measure
|
||||
# has_one :dashboard_measure, through: dashboard_scale
|
||||
# has_one :dashboard_subcategory, through: dashboard_measure
|
||||
|
||||
has_many :dashboard_survey_item_responses
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue