We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2651014 + 1030b55 commit 0f63607Copy full SHA for 0f63607
1 file changed
app/lib/team_merger.rb
@@ -11,7 +11,6 @@ class TeamMerger
11
ImmunisationImport,
12
PatientSpecificDirection,
13
SchoolMoveLogEntry,
14
- SchoolMove,
15
Triage
16
].freeze
17
@@ -346,6 +345,10 @@ def migrate_generic_locations(merged_team)
346
345
location_id: merged_loc.id
347
)
348
+ SchoolMove.where(school_id: source_ids).update_all(
349
+ school_id: merged_loc.id
350
+ )
351
+
352
keep_ids =
353
PatientLocation
354
.where(location_id: source_ids)
0 commit comments