mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
fixing bugs with school_question creation
This commit is contained in:
parent
5dc79e5da7
commit
9e6f8b8790
1 changed files with 1 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ namespace :data do
|
|||
desc 'Create School Questions'
|
||||
task create_school_questions: :environment do
|
||||
Category.joins(:questions).uniq.all.each do |category|
|
||||
category.school_categories.includes(school: [:district]).find_in_batches(batch_size: 100) do |group|
|
||||
category.school_categories.joins(school: :district).where("districts.name = 'Boston'").find_in_batches(batch_size: 100) do |group|
|
||||
group.each do |school_category|
|
||||
school_questions = []
|
||||
new_school_questions = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue