diff options
author | Manoj <manoj.mk27@gmail.com> | 2012-01-28 00:18:59 +0530 |
---|---|---|
committer | Manoj <manoj.mk27@gmail.com> | 2012-01-29 15:28:22 +0530 |
commit | 336ff8a97e9391d4111e923a9b841376110d04c9 (patch) | |
tree | 5590b3f9b97cf896f26bb641a474908fd20d873f /activerecord/CHANGELOG.md | |
parent | fd3211ef677efe9531f38db58919a8c90d65892a (diff) | |
download | rails-336ff8a97e9391d4111e923a9b841376110d04c9.tar.gz rails-336ff8a97e9391d4111e923a9b841376110d04c9.tar.bz2 rails-336ff8a97e9391d4111e923a9b841376110d04c9.zip |
has_many/has_one, :dependent => :restrict, deprecation added.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index b45aba6bb1..e9e97f5d62 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,24 @@ ## Rails 4.0.0 (unreleased) ## +* Added deprecation for the `:dependent => :restrict` association option. + + Please note: + + * Up until now `has_many` and `has_one`, `:dependent => :restrict` + option raised a `DeleteRestrictionError` at the time of destroying + the object. Instead, it will add an error on the model. + + * To fix this warning, make sure your code isn't relying on a + `DeleteRestrictionError` and then add + `config.active_record.dependent_restrict_raises = false` to your + application config. + + * New rails application would be generated with the + `config.active_record.dependent_restrict_raises = false` in the + application config. + + *Manoj Kumar* + * Added `create_join_table` migration helper to create HABTM join tables create_join_table :products, :categories |