mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Remove one-off task for cleaning Somerville data
This commit is contained in:
parent
c14b45ad04
commit
15cda552d9
1 changed files with 0 additions and 9 deletions
|
|
@ -1,11 +1,2 @@
|
||||||
namespace :one_off do
|
namespace :one_off do
|
||||||
task clean_up_somerville: :environment do
|
|
||||||
combined_school = School.find_by_name 'Next Wave/Full Circle'
|
|
||||||
combined_school.update qualtrics_code: 5
|
|
||||||
full_circle = School.find_by_name 'Full Circle High School'
|
|
||||||
next_wave = School.find_by_name 'Next Wave Junior High School'
|
|
||||||
SurveyItemResponse.where(school: [full_circle, next_wave]).update_all school_id: combined_school.id
|
|
||||||
full_circle.destroy!
|
|
||||||
next_wave.destroy!
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue