diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-01-16 21:28:47 +0000 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-16 13:43:54 -0800 |
commit | d1521719c5ac61a0c0e59827fe8cb197f5fe56f5 (patch) | |
tree | 6a64320e36d329a5addeeb0f5dda86466eae072e /activerecord/CHANGELOG | |
parent | c4458b36024a20abacc39c069444bb0ac202778a (diff) | |
download | rails-d1521719c5ac61a0c0e59827fe8cb197f5fe56f5.tar.gz rails-d1521719c5ac61a0c0e59827fe8cb197f5fe56f5.tar.bz2 rails-d1521719c5ac61a0c0e59827fe8cb197f5fe56f5.zip |
Removed support for accessing attributes on a has_and_belongs_to_many join table. This has been documented as deprecated behaviour since April 2006. Please use has_many :through instead. A deprecation warning will be added to the 3-0-stable branch for the 3.0.4 release.
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 1d2f814d32..43272160bd 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,9 @@ *Rails 3.1.0 (unreleased)* +* Removed support for accessing attributes on a has_and_belongs_to_many join table. This has been + documented as deprecated behaviour since April 2006. Please use has_many :through instead. + [Jon Leighton] + * Migration files generated from model and constructive migration generators (for example, add_name_to_users) use the reversible migration's `change` method instead of the ordinary `up` and `down` methods. [Prem Sichanugrist] @@ -26,7 +30,7 @@ along with attribute conditionals as a replacement. User.find_by_name("david").try(:authenticate, "mUc3m00RsqyRe") # => user -* When a model is generated add_index is added by default for belongs_to or references columns +* When a model is generated add_index is added by default for belongs_to or references columns rails g model post user:belongs_to will generate the following: |