aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-05-17 00:25:04 +0200
committerYves Senn <yves.senn@gmail.com>2014-05-17 00:25:53 +0200
commit779ff5cdeb8aa1cffb112e0d40baa57b33a29844 (patch)
treeef779e15360576fb41dbf6d8f4e08f7f3fe976e3 /guides/source/upgrading_ruby_on_rails.md
parente83a6ff5b75fa8407fa8f3733a39b365dace141a (diff)
downloadrails-779ff5cdeb8aa1cffb112e0d40baa57b33a29844.tar.gz
rails-779ff5cdeb8aa1cffb112e0d40baa57b33a29844.tar.bz2
rails-779ff5cdeb8aa1cffb112e0d40baa57b33a29844.zip
doc, pg `hstore` and `json` columns are mapped as `Hash`. [ci skip]
Closes #15141.
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index bb194d667e..30eb89ede8 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -393,6 +393,14 @@ start using the more precise `:plain:`, `:html`, and `:body` options instead.
Using `render :text` may pose a security risk, as the content is sent as
`text/html`.
+### PostgreSQL json and hstore datatypes
+
+Rails 4.1 will map `json` and `hstore` columns to a string-keyed Ruby `Hash`.
+In earlier versions a `HashWithIndifferentAccess` was used. This means that
+symbol access is no longer supported. This is also the case for
+`store_accessors` based on top of `json` or `hstore` columns. Make sure to use
+string keys consistently.
+
Upgrading from Rails 3.2 to Rails 4.0
-------------------------------------