diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-08-24 06:47:43 -0600 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2015-08-24 06:47:43 -0600 |
commit | 2170950b2f03383da69b275eb0710b78a4a2249a (patch) | |
tree | 08ff0373a42e3d300db7cb3093713dcb4bc8096c /activerecord/CHANGELOG.md | |
parent | 5500e28eb3bb56663bc6e347d4a07a2b54f7b17f (diff) | |
parent | 19b168e611fb8fb547981c4535130c29856efd3a (diff) | |
download | rails-2170950b2f03383da69b275eb0710b78a4a2249a.tar.gz rails-2170950b2f03383da69b275eb0710b78a4a2249a.tar.bz2 rails-2170950b2f03383da69b275eb0710b78a4a2249a.zip |
Merge pull request #21350 from agis-/issue-21223
Only nullify persisted has_one target associations
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 0841b2f679..d880470d97 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,9 @@ +* Only try to nullify has_one target association if the record is persisted. + + Fixes #21223. + + *Agis Anastasopoulos* + * Uniqueness validator raises descriptive error when running on a persisted record without primary key. |