We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5acc346 + bfa9329 commit ed5c698Copy full SHA for ed5c698
lib/tasks/archive_moved_out_of_cohort_patients.rake
@@ -2,7 +2,7 @@
2
3
desc "Migrate patients who were moved out of cohorts to ensure they're archived."
4
task archive_moved_out_of_cohort_patients: :environment do
5
- Organisation.find_each do |team|
+ Team.find_each do |team|
6
user = OpenStruct.new(selected_team: team)
7
8
patients_in_cohort = team.patients
0 commit comments