chore: Add comment that notifies that cloning previous year staffing

data will also copy over enrollment data
This commit is contained in:
Nelson Jovel 2023-11-09 13:42:29 -08:00
parent 11617abd89
commit 95f8ada48d

View file

@ -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