diff options
author | Matthew Draper <matthew@trebex.net> | 2016-12-10 06:22:17 +1030 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-10 06:22:17 +1030 |
commit | 1399d5c1e0b3a9f7f979523075731f9c67c4e258 (patch) | |
tree | e38e7dc51640e1dccb2eafc01112ce8d2fd3a840 /activerecord | |
parent | 4eb3ef812ce0610912fe67c4f4b048b38b0c0213 (diff) | |
parent | 3190aab84d4a0a667f6dbc4ff61c706058cb4e5f (diff) | |
download | rails-1399d5c1e0b3a9f7f979523075731f9c67c4e258.tar.gz rails-1399d5c1e0b3a9f7f979523075731f9c67c4e258.tar.bz2 rails-1399d5c1e0b3a9f7f979523075731f9c67c4e258.zip |
Merge pull request #27314 from kamipo/add_changelog_for_25451
Add a changelog entry for #25451 [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 07176334e4..e377ad85c9 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,4 +1,9 @@ -* Emulate db trigger behaviour for after_commit :destroy, :update +* Raise `ActiveRecord::NotNullViolation` when a record cannot be inserted + or updated because it would violate a not null constraint. + + *Ryuta Kamizono* + +* Emulate db trigger behaviour for after_commit :destroy, :update. Race conditions can occur when an ActiveRecord is destroyed twice or destroyed and updated. The callbacks should only be @@ -6,7 +11,7 @@ *Stefan Budeanu* -* Moved DecimalWithoutScale, Text, and UnsignedInteger from Active Model to Active Record +* Moved `DecimalWithoutScale`, `Text`, and `UnsignedInteger` from Active Model to Active Record. *Iain Beeston* @@ -22,7 +27,7 @@ *Prathamesh Sonpatki* -* PostgreSQL & MySQL: Use big integer as primary key type for new tables +* PostgreSQL & MySQL: Use big integer as primary key type for new tables. *Jon McCartie*, *Pavel Pravosud* @@ -42,7 +47,7 @@ *Sergey Alekseev* -* Raise ActiveRecord::RecordNotFound from collection `*_ids` setters +* Raise `ActiveRecord::RecordNotFound` from collection `*_ids` setters for unknown IDs with a better error message. Changes the collection `*_ids` setters to cast provided IDs the data @@ -129,7 +134,7 @@ * Fixed: Optimistic locking does not work well with `null` in the database. - Fixes #26024 + Fixes #26024. *bogdanvlviv* @@ -138,7 +143,7 @@ *Edho Arief* -* Serialize JSON attribute value `nil` as SQL `NULL`, not JSON `null` +* Serialize JSON attribute value `nil` as SQL `NULL`, not JSON `null`. *Trung Duc Tran* @@ -242,7 +247,7 @@ successfully rolled back when the column was given and invalid column type. - Fixes #26087 + Fixes #26087. *Travis O'Neill* @@ -272,7 +277,7 @@ *Takeshi Akima* * Virtual attributes will no longer raise when read on models loaded from the - database + database. *Sean Griffin* |