Skip to content

Instantly share code, notes, and snippets.

@vassyz
Created October 4, 2023 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vassyz/42990e60c661be7c35e264e7373e293d to your computer and use it in GitHub Desktop.
Save vassyz/42990e60c661be7c35e264e7373e293d to your computer and use it in GitHub Desktop.
[DfE] 2273-update-visa-sponsorship-for-course
provider = RecruitmentCycle.current.providers.find_by(provider_code: "1M1")
course = provider.courses.where(course_code: '295G').first
course.update(can_sponsor_student_visa: false)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment