chore: Add comment that notifies that cloning previous year staffing

data will also copy over enrollment data
speedup-admin-data
Nelson Jovel 2 years ago
parent f6f78bcd58
commit f677af826b

@ -127,7 +127,9 @@ class Seeder
StaffingLoader.load_data(filepath: csv_file)
missing_staffing_for_current_year = Respondent.where(academic_year: AcademicYear.order(:range).last).none? do |respondent|
respondent.total_teachers.present?
end
# This will also clone enrollment data from the previous year
StaffingLoader.clone_previous_year_data if missing_staffing_for_current_year
end

Loading…
Cancel
Save