Skip to content

Commit 4bfd0ce

Browse files
committed
[ci skip] Clarify the "Serialized Attributes" section
Mention that the change in nil handling for serialized attributes affects custom coders.
1 parent 9c8826b commit 4bfd0ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

guides/source/upgrading_ruby_on_rails.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ NOTE: This section is a work in progress.
5454

5555
### Serialized attributes
5656

57-
When assigning `nil` to a serialized attribute, it will be saved to the database
57+
When using a custom coder (e.g. `serialize :metadata, JSON`),
58+
assigning `nil` to a serialized attribute will save it to the database
5859
as `NULL` instead of passing the `nil` value through the coder (e.g. `"null"`
5960
when using the `JSON` coder).
6061

0 commit comments

Comments
 (0)