aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2016-03-07 16:09:19 -0500
committerArthur Neves <arthurnn@gmail.com>2016-03-07 16:10:18 -0500
commitf5b553c94d9169f24f7149640b4afd0663327ee2 (patch)
tree6c21b80d24ab7c3f19020a3582d537f2d7b3e8c9 /activerecord
parenta38afb3e55e2dc4b33760321db51ccf8fa06b2c8 (diff)
downloadrails-f5b553c94d9169f24f7149640b4afd0663327ee2.tar.gz
rails-f5b553c94d9169f24f7149640b4afd0663327ee2.tar.bz2
rails-f5b553c94d9169f24f7149640b4afd0663327ee2.zip
Add changelog for batch touch records.
related to #19324 and #18606 [skip ci]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/CHANGELOG.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 3784f2359a..83200c9f91 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -228,6 +228,21 @@
## Rails 5.0.0.beta1 (December 18, 2015) ##
+* Limit record touching to once per transaction.
+
+ If you have a parent/grand-parent relation like:
+
+ Comment belongs_to :message, touch: true
+ Message belongs_to :project, touch: true
+ Project belongs_to :account, touch: true
+
+ When the lowest entry(`Comment`) is saved, now, it won't repeat the touch
+ call multiple times for the parent records.
+
+ Related #18606.
+
+ *arthurnn*
+
* Order the result of `find(ids)` to match the passed array, if the relation
has no explicit order defined.