aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2009-12-21 15:25:51 -0800
committerDavid Heinemeier Hansson <david@loudthinking.com>2009-12-21 15:25:51 -0800
commit81c3b0403d805a7562bee8fdd27b541c802ce0eb (patch)
tree7d302a20ac3ef273244a314eb8e5f44e76a5fcbb
parentfa8849a573aa98750fc5fdacf557d973b85072ca (diff)
parentbf03ddc6365c8ea83647b5f315a34aa5c6b65df1 (diff)
downloadrails-81c3b0403d805a7562bee8fdd27b541c802ce0eb.tar.gz
rails-81c3b0403d805a7562bee8fdd27b541c802ce0eb.tar.bz2
rails-81c3b0403d805a7562bee8fdd27b541c802ce0eb.zip
Merge branch 'master' of github.com:rails/rails
-rw-r--r--activerecord/CHANGELOG7
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 1f7a95a53a..be4d197f99 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -1,5 +1,12 @@
*Edge*
+* Association inverses for belongs_to, has_one, and has_many. Optimization to reduce database queries. #3533 [Murray Steele]
+
+ # post.comments sets each comment's post without needing to :include
+ class Post < ActiveRecord::Base
+ has_many :comments, :inverse_of => :post
+ end
+
* MySQL: add_ and change_column support positioning. #3286 [Ben Marini]
* Reset your Active Record counter caches with the reset_counter_cache class method. #1211 [Mike Breen, Gabe da Silveira]