diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-07-21 15:37:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 15:37:29 -0400 |
commit | c942d3d23486e3de86b3be004ce61cc598b4fd75 (patch) | |
tree | c9e5d5305e3ee829f41169f845fa317879182715 /activerecord/CHANGELOG.md | |
parent | 15ef55efb591e5379486ccf53dd3e13f416564f6 (diff) | |
parent | cb8d8909910e3c6d3b62574e8ce41a024323a00d (diff) | |
download | rails-c942d3d23486e3de86b3be004ce61cc598b4fd75.tar.gz rails-c942d3d23486e3de86b3be004ce61cc598b4fd75.tar.bz2 rails-c942d3d23486e3de86b3be004ce61cc598b4fd75.zip |
Merge pull request #29855 from lugray/has_one_destroyed_by_association
Match destroyed_by_association for has_one to has_many
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 7eca9c2e2e..ea9f860b95 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,9 @@ +* When a `has_one` association is destroyed by `dependent: destroy`, + `destroyed_by_association` will now be set to the reflection, matching the + behaviour of `has_many` associations. + + *Lisa Ugray* + * Fix `unscoped(where: [columns])` removing the wrong bind values When the `where` is called on a relation after a `or`, unscoping the column of that later `where` removed |