Skip to content

Instantly share code, notes, and snippets.

@simonista
Created October 24, 2016 16:54
Show Gist options
  • 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