Created
October 3, 2023 20:26
-
-
Save zarembas/3e9e79daa95c40410baf675e418be9c6 to your computer and use it in GitHub Desktop.
[DfE] 2237-withdrawn-course-in-apply
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
course = RecruitmentCycle.next.providers.find_by(provider_code: "C23").courses.find_by(course_code: "CX11") | |
course.enrichments.max_by(&:created_at).update(status: "draft", last_published_timestamp_utc: nil) | |
course.site_statuses.each do |site_status| | |
site_status.update(vac_status: :no_vacancies, status: :new_status) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment