aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.md
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2014-07-15 09:08:31 -0700
committerGodfrey Chan <godfreykfc@gmail.com>2014-07-15 09:08:31 -0700
commitda6472c916be5645ea4d761e7cbf44d486ca07a8 (patch)
tree541e3e505692e1f165e14f5506e6bb83db851fa9 /guides/source/upgrading_ruby_on_rails.md
parentcd809fd8ce920b27f813b56907e9a603a2b91839 (diff)
downloadrails-da6472c916be5645ea4d761e7cbf44d486ca07a8.tar.gz
rails-da6472c916be5645ea4d761e7cbf44d486ca07a8.tar.bz2
rails-da6472c916be5645ea4d761e7cbf44d486ca07a8.zip
Document the change in `nil` handling for serialized attributes
Also updated the test case to reflect that
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index 36cd505977..b3e4505fc0 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -52,6 +52,11 @@ Upgrading from Rails 4.1 to Rails 4.2
NOTE: This section is a work in progress.
+### Serialized attributes
+
+When assigning `nil` to a serialized attribute, it will be saved to the database
+as `NULL` instead of passing the `nil` value through the coder (e.g. `"null"`
+when using the `JSON` coder).
Upgrading from Rails 4.0 to Rails 4.1
-------------------------------------