aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2018-03-19 08:07:23 -0400
committerGitHub <noreply@github.com>2018-03-19 08:07:23 -0400
commitdb8cce202b8e81154773e5195a3ae35e873427e6 (patch)
tree21ee2659b8055af5dfd74a0e36a42501e60e4c41 /activerecord/lib
parent8647ac0b88d8883e1c638b3b537deb62a40f4b74 (diff)
parentddf829e017e2fb37cfb9f975e69d73f27a5528d2 (diff)
downloadrails-db8cce202b8e81154773e5195a3ae35e873427e6.tar.gz
rails-db8cce202b8e81154773e5195a3ae35e873427e6.tar.bz2
rails-db8cce202b8e81154773e5195a3ae35e873427e6.zip
Merge pull request #32278 from saveriomiroddi/add_mysql_json_to_activerecord_store_documentation
Add MySQL JSON reference to ActiveRecord::Store documentation
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/store.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/store.rb b/activerecord/lib/active_record/store.rb
index 6dbc977f9a..3290675338 100644
--- a/activerecord/lib/active_record/store.rb
+++ b/activerecord/lib/active_record/store.rb
@@ -17,8 +17,8 @@ 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+.
#
- # NOTE: If you are using PostgreSQL specific columns like +hstore+ or +json+ there is no need for
- # the serialization provided by {.store}[rdoc-ref:rdoc-ref:ClassMethods#store].
+ # NOTE: If you are using structured database data types (eg. PostgreSQL +hstore+/+json+, or MySQL 5.7+
+ # +json+) there is no need for the serialization provided by {.store}[rdoc-ref:rdoc-ref:ClassMethods#store].
# Simply use {.store_accessor}[rdoc-ref:ClassMethods#store_accessor] instead to generate
# the accessor methods. Be aware that these columns use a string keyed hash and do not allow access
# using a symbol.