diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-01-21 11:47:11 -0700 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-01-21 11:48:32 -0700 |
commit | e8460f8bbe73537897f2162d1cccda943d8c0f4a (patch) | |
tree | dc6eb6b07f4848d4b93d8dc1798a92e31ac3a24e /activerecord/CHANGELOG.md | |
parent | 14599a575850567b28967decffbbbb270fa92676 (diff) | |
download | rails-e8460f8bbe73537897f2162d1cccda943d8c0f4a.tar.gz rails-e8460f8bbe73537897f2162d1cccda943d8c0f4a.tar.bz2 rails-e8460f8bbe73537897f2162d1cccda943d8c0f4a.zip |
Don't error when invalid json is assigned to a JSON column
Keeping with our behavior elsewhere in the system, invalid input is
assumed to be `nil`.
Fixes #18629.
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 45c3cb0690..cb3e27838b 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,9 @@ +* Invalid values assigned to a JSON column are assumed to be `nil`. + + Fixes #18629. + + *Sean Griffin* + * Add `ActiveRecord::Base#accessed_fields`, which can be used to quickly discover which fields were read from a model when you are looking to only select the data you need from the database. |