Adds optimistic locking to Datamapper.
class Model include DataMapper::Resource ... add_locking_column :my_version_col end
add_locking_column takes a options hash just like DataMapper’s property method does.
-
dm-core >= 0.9.5
Adds optimistic locking to Datamapper.
class Model include DataMapper::Resource ... add_locking_column :my_version_col end
add_locking_column takes a options hash just like DataMapper’s property method does.
dm-core >= 0.9.5