Skip to content

Instantly share code, notes, and snippets.

@defong
Last active October 10, 2023 15:04
Show Gist options
  • Save defong/c90f195744593f4282c0577d7c1303d0 to your computer and use it in GitHub Desktop.
Save defong/c90f195744593f4282c0577d7c1303d0 to your computer and use it in GitHub Desktop.
[DfE] 2293-reinstate-withdrawn-course
Please could Computing (3379) at Carmel College (1KF) have its withdrawal reverted
course = RecruitmentCycle.current.providers.find_by(provider_code: "1KF").courses.find_by(course_code: "3379")
course.enrichments.max_by(&:created_at).update(status: "published", last_published_timestamp_utc: Time.now.utc)
course.site_statuses.each do |site_status|
site_status.update(vac_status: :no_vacancies, status: :running)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment