mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Also delete response rates for non lowell schools
This commit is contained in:
parent
7b9abe3793
commit
8c8dc39465
1 changed files with 1 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ namespace :data do
|
|||
desc 'delete non-lowell schools and districts'
|
||||
task delete_non_lowell: :environment do
|
||||
schools = School.all.reject { |s| s.district.name == 'Lowell' }
|
||||
ResponseRate.where(school: schools).delete_all
|
||||
Respondent.where(school: schools).delete_all
|
||||
Survey.where(school: schools).delete_all
|
||||
schools.each { |school| school.delete }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue