You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/safe-pg-migrations/configuration.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ def initialize
33
33
deflock_timeout=(value)
34
34
raise'Setting lock timeout to 0 disables the lock timeout and is dangerous'ifvalue == 0.seconds
35
35
36
-
unlessvalue.nil? || (value < safe_timeout && value < max_lock_timeout_on_retry)
36
+
unlessvalue.nil? || (value < safe_timeout && value < max_lock_timeout_for_retry)
37
37
raiseArgumentError,"Lock timeout (#{value}) cannot be greater than the safe timeout (#{safe_timeout}) or the max lock timeout for retry (#{max_lock_timeout_for_retry})"
0 commit comments