method
locking_enabled?
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::Locking::Optimistic::ClassMethods
locking_enabled?()
public
Returns true if the lock_optimistically flag is set to true (which it is, by default) and the table includes the locking_column column (defaults to lock_version).