with_lock(lock = true) Instance Public methods Wraps the passed block in a transaction
locking_column=(value) Instance Public methods Set the column to use for optimistic
lock!(lock = true) Instance Public methods Obtain a row lock on this record
update_counters(id, counters) Instance Public methods Make sure the lock version
quoted_locking_column() Instance Public methods Quote the column name used for
reset_locking_column() Instance Public methods Reset the column used for optimistic
locking_column() Instance Public methods The version column used for optimistic
locking_enabled?() Instance Public methods Returns true if the lock_o
column_defaults() Instance Public methods