Merge pull request #51016 from javierav/optimistic-locking-doc

Document that lock_version column is integer
This commit is contained in:
Rafael Mendonça França 2024-02-14 18:55:48 -05:00 committed by GitHub
commit e2c522b4b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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)