mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
adding recipient list
This commit is contained in:
parent
be8af80a61
commit
658d0266ce
1 changed files with 5 additions and 2 deletions
|
|
@ -7,11 +7,14 @@
|
|||
# Mayor.create(name: 'Emanuel', city: cities.first)
|
||||
|
||||
|
||||
questions = Category.find_by_name('Family Subcategory').child_categories.map(&:questions).flatten
|
||||
QuestionList.create(name: 'Family Questions', question_id_array: questions.map(&:id))
|
||||
|
||||
|
||||
cambridge = District.create(name: 'Cambridge Public Schools')
|
||||
school = School.create(name: 'Graham & Parks', district: cambridge, description: 'A description of G&P')
|
||||
recipient = school.recipients.create(name: 'Jared Cosulich', phone: '650-269-3205')
|
||||
questions = Category.find_by_name('Family Subcategory').child_categories.map(&:questions).flatten
|
||||
QuestionList.create(name: 'Family Questions', question_id_array: questions.map(&:id))
|
||||
recipient_list = school.recipient_lists.create(name: 'Pilot Parent Test', recipient_id_array: [recipient.id])
|
||||
|
||||
# somerville = District.create(name: 'Somerville Public Schools')
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue