Document that lock_version column is integer

This commit is contained in:
Javier Aranda 2024-02-11 18:19:21 +01:00
parent 1007cc8c03
commit a60039b8dc
No known key found for this signature in database
GPG Key ID: 6CB2CFC7D2282688
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ module ActiveRecord
# == Usage
#
# Active Record supports optimistic locking if the +lock_version+ field is present. Each update to the
# record increments the +lock_version+ column and the locking facilities ensure that records instantiated twice
# record increments the integer column +lock_version+ and the locking facilities ensure that records instantiated twice
# will let the last one saved raise a +StaleObjectError+ if the first was also updated. Example:
#
# p1 = Person.find(1)