diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-11-06 10:54:08 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-11-06 10:54:08 +0100 |
commit | a5176def3d9067e1aa3bfe8457f888ed45f422c9 (patch) | |
tree | 1bc0d104eb011813148240e65155248dd4e258a0 /activerecord/lib | |
parent | aa330d0d7a694bde5c4e9f2976eb21a71a8be9f3 (diff) | |
download | rails-a5176def3d9067e1aa3bfe8457f888ed45f422c9.tar.gz rails-a5176def3d9067e1aa3bfe8457f888ed45f422c9.tar.bz2 rails-a5176def3d9067e1aa3bfe8457f888ed45f422c9.zip |
refine usage docs of `store` in combination with `hstore` and `json`.
refs #11561 #12700
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/store.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/store.rb b/activerecord/lib/active_record/store.rb index 0f616c537e..19c0571cc0 100644 --- a/activerecord/lib/active_record/store.rb +++ b/activerecord/lib/active_record/store.rb @@ -15,9 +15,9 @@ 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. + # NOTE - If you are using special PostgreSQL columns like +hstore+ or +json+ there is no need for + # the serialization provieded by +store+. You can simply use +store_accessor+ instead to generate + # the accessor methods. # # Examples: # |