diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2016-11-10 14:12:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-10 14:12:38 -0500 |
commit | c58083584c3a7a2e29f609760547e10e46d56a33 (patch) | |
tree | 3b7ca8c757ba98ef24f228e946b26ef8638ee8fd | |
parent | cd9d6bed1bc6aeee6566eed5a5162baaeba769e6 (diff) | |
parent | 25eed41c4950a6d1596130857841ae773b52f4d0 (diff) | |
download | rails-c58083584c3a7a2e29f609760547e10e46d56a33.tar.gz rails-c58083584c3a7a2e29f609760547e10e46d56a33.tar.bz2 rails-c58083584c3a7a2e29f609760547e10e46d56a33.zip |
Merge pull request #27006 from bogdanvlviv/ar_querying_guide
Update guides/source/active_record_querying.md
-rw-r--r-- | guides/source/active_record_querying.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index 38b1ffc4c8..31220f9be2 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -953,6 +953,9 @@ class Client < ApplicationRecord end ``` +NOTE: Please note that the optimistic locking will be ignored if you update the +locking column's value. + ### Pessimistic Locking Pessimistic locking uses a locking mechanism provided by the underlying database. Using `lock` when building a relation obtains an exclusive lock on the selected rows. Relations using `lock` are usually wrapped inside a transaction for preventing deadlock conditions. |