Able to create schools now

This commit is contained in:
Nelson Jovel 2024-01-04 20:15:33 -08:00
parent a4fddbeced
commit 865b7b17af
11 changed files with 26 additions and 19 deletions

View file

@ -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

View file

@ -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