Skip to content

Instantly share code, notes, and snippets.

@simonista
Created October 24, 2016 16:54
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 simonista/83b40915696648765b6beec2244c1e39 to your computer and use it in GitHub Desktop.
Save simonista/83b40915696648765b6beec2244c1e39 to your computer and use it in GitHub Desktop.
Apply this patch to the 2016-09-17 branch to avoid a problem with a migration in the 2016-10-08 branch
diff --git a/app/models/enrollment_state.rb b/app/models/enrollment_state.rb
index 66e9700..c6caf91 100644
--- a/app/models/enrollment_state.rb
+++ b/app/models/enrollment_state.rb
@@ -7,6 +7,7 @@ class EnrollmentState < ActiveRecord::Base
validates_presence_of :enrollment_id
self.primary_key = 'enrollment_id'
+ self.lock_optimistically = false
def hash
global_enrollment_id.hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment