Module | ActiveRecord::Locking::Optimistic::ClassMethods |
In: |
lib/active_record/locking/optimistic.rb
|
DEFAULT_LOCKING_COLUMN | = | 'lock_version' |
Is optimistic locking enabled for this table? 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).