Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zarembas/42990e60c661be7c35e264e7373e293d to your computer and use it in GitHub Desktop.
Save zarembas/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