mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
Show parent response rate
This commit is contained in:
parent
fcf8f011c2
commit
8984023aa4
12 changed files with 98 additions and 48 deletions
10
db/migrate/20241031190531_create_parents.rb
Normal file
10
db/migrate/20241031190531_create_parents.rb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class CreateParents < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
create_table :parents do |t|
|
||||
t.string :response_id
|
||||
t.integer :number_of_children
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
class AddParentToSurveyItemResponse < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
add_reference :survey_item_responses, :parent, foreign_key: true
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue