mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
Transfer qualtrics codes from dup schools to original schools
This commit is contained in:
parent
4e1fe3f4cf
commit
8628b3d722
1 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,8 @@ namespace :dupes do
|
|||
schools.each do |school_to_destroy|
|
||||
next if school_to_destroy == school_to_keep
|
||||
|
||||
school_to_keep.update(qualtrics_code: school_to_destroy.qualtrics_code)
|
||||
|
||||
SurveyItemResponse.where(school: school_to_destroy) do |response|
|
||||
response.update(school: school_to_keep)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue