mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Clean up Next Wave/Full Circle Somerville data
This commit is contained in:
parent
dd4a7d354e
commit
a9598c0c49
1 changed files with 11 additions and 0 deletions
11
lib/tasks/one_off.rake
Normal file
11
lib/tasks/one_off.rake
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace :one_off
|
||||
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! school: combined_school
|
||||
full_circle.destroy
|
||||
next_wave.destroy
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue