method
locking_enabled?
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
locking_enabled?()
public
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).