From 3190aab84d4a0a667f6dbc4ff61c706058cb4e5f Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Sat, 10 Dec 2016 04:41:42 +0900 Subject: Add a changelog entry for #25451 [ci skip] --- activerecord/CHANGELOG.md | 21 +++++++++++++-------- 1 file 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* -- cgit v1.2.3