diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2015-08-04 04:16:54 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2015-08-18 16:13:00 +0900 |
commit | 89d5d1cafb23280bda3f303442387e71353c9e49 (patch) | |
tree | 93968b2a2d1c8e817b0724b1f67b64862b867060 /activerecord/lib/active_record/connection_adapters/postgresql/oid/jsonb.rb | |
parent | 2a2473fd71d75bcda68f70500178d32587700ab0 (diff) | |
download | rails-89d5d1cafb23280bda3f303442387e71353c9e49.tar.gz rails-89d5d1cafb23280bda3f303442387e71353c9e49.tar.bz2 rails-89d5d1cafb23280bda3f303442387e71353c9e49.zip |
Add a native JSON data type support in MySQL
As of MySQL 5.7.8, MySQL supports a native JSON data type.
Example:
create_table :json_data_type do |t|
t.json :settings
end
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/oid/jsonb.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/oid/jsonb.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/oid/jsonb.rb b/activerecord/lib/active_record/connection_adapters/postgresql/oid/jsonb.rb index 87391b5dc7..1f6d63582c 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/oid/jsonb.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/oid/jsonb.rb @@ -2,7 +2,7 @@ module ActiveRecord module ConnectionAdapters module PostgreSQL module OID # :nodoc: - class Jsonb < Json # :nodoc: + class Jsonb < Type::Json # :nodoc: def type :jsonb end |