mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #29403 from yasslab/add-backquote-to-counter-cache
[ci skip] Add backquote to :counter_cache option
This commit is contained in:
commit
57cfd45b16
1 changed files with 1 additions and 1 deletions
|
@ -960,7 +960,7 @@ class Author < ApplicationRecord
|
|||
end
|
||||
```
|
||||
|
||||
NOTE: You only need to specify the :counter_cache option on the `belongs_to`
|
||||
NOTE: You only need to specify the `:counter_cache` option on the `belongs_to`
|
||||
side of the association.
|
||||
|
||||
Counter cache columns are added to the containing model's list of read-only attributes through `attr_readonly`.
|
||||
|
|
Loading…
Reference in a new issue