diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-03-01 12:31:43 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-03-01 12:31:43 -0800 |
commit | 35050ab26dcb99bafc7416c6d8fefd32131352b8 (patch) | |
tree | 05d9f7caf4d422a08aba1a5ab442926805a14b20 /activerecord/CHANGELOG.md | |
parent | 99775fd1612217aaba2f3580b4204c6b75c04249 (diff) | |
parent | b9399c470bc7cf85952ab0cc7113f4f825a1a7b3 (diff) | |
download | rails-35050ab26dcb99bafc7416c6d8fefd32131352b8.tar.gz rails-35050ab26dcb99bafc7416c6d8fefd32131352b8.tar.bz2 rails-35050ab26dcb99bafc7416c6d8fefd32131352b8.zip |
Merge pull request #9510 from senny/7364_warn_when_appending_prepending_to_an_association
deal with `#append` and `#prepend` on association collections
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 235a91fafa..c5bef0a6e6 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,12 +1,18 @@ ## Rails 4.0.0 (unreleased) ## +* The `#append` method for collection associations behaves like`<<`. + `#prepend` is not defined and `<<` or `#append` should be used. + Fixes #7364. + + *Yves Senn* + * Added support for creating a table via Rails migration generator. - For example, + For example, rails g migration create_books title:string content:text - will generate a migration that creates a table called books with - the listed attributes, without creating a model. + will generate a migration that creates a table called books with + the listed attributes, without creating a model. *Sammy Larbi* @@ -372,7 +378,7 @@ deprecated and removed in future versions of Rails. *Amparo Luna + Guillermo Iguaran* - + * `after_commit` and `after_rollback` now validate the `:on` option and raise an `ArgumentError` if it is not one of `:create`, `:destroy` or `:update` |