aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2013-10-30 17:08:20 +0100
committerRobin Dupret <robin.dupret@gmail.com>2013-10-30 17:08:20 +0100
commit1478ebf66c158bd214ed807622ec941cad4e3dee (patch)
tree7b6c7e4c99e77307df15f17ed75ab8b90cbc5493 /activerecord/lib/active_record
parent97ad84e10d222f796811c69cd8577a62ac74d838 (diff)
downloadrails-1478ebf66c158bd214ed807622ec941cad4e3dee.tar.gz
rails-1478ebf66c158bd214ed807622ec941cad4e3dee.tar.bz2
rails-1478ebf66c158bd214ed807622ec941cad4e3dee.zip
Hstore and JSON fields are not supported with store
The use of `store` on Hstore fields (for instance) is not needed because serialization aimed to interact with Ruby objects and not with provided field types
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/store.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/store.rb b/activerecord/lib/active_record/store.rb
index a610f479f2..0f616c537e 100644
--- a/activerecord/lib/active_record/store.rb
+++ b/activerecord/lib/active_record/store.rb
@@ -15,6 +15,10 @@ module ActiveRecord
# You can set custom coder to encode/decode your serialized attributes to/from different formats.
# JSON, YAML, Marshal are supported out of the box. Generally it can be any wrapper that provides +load+ and +dump+.
#
+ # With PostgreSQL, the +store+ feature is not supported for field types such as Hstore
+ # or JSON because it would add an extra layer of serialization and this is not needed.
+ # Rely on +store_accessor+ instead.
+ #
# Examples:
#
# class User < ActiveRecord::Base