Show parent response rate

This commit is contained in:
Nelson Jovel 2024-10-31 20:05:26 -07:00
parent fcf8f011c2
commit 8984023aa4
12 changed files with 98 additions and 48 deletions

2
app/models/parent.rb Normal file
View file

@ -0,0 +1,2 @@
class Parent < ApplicationRecord
end

View file

@ -8,6 +8,7 @@ class SurveyItemResponse < ActiveRecord::Base
belongs_to :school
belongs_to :survey_item, counter_cache: true
belongs_to :student, foreign_key: :student_id, optional: true
belongs_to :parent, optional: true
belongs_to :gender, optional: true
belongs_to :income, optional: true
belongs_to :ell, optional: true