diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-07-25 11:16:20 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-07-25 11:16:30 +0200 |
commit | 1ec601b4e3a4f8dbad56185a7a4ae5a8cc598002 (patch) | |
tree | ea82bd6e10dc31ce6eac8f2bf236e68256ab6620 /activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb | |
parent | 75eddfbca98bb17ae7569ec30a3094ae1c50cdd3 (diff) | |
parent | 99b82fdf03fcf6d6ca8e2d810ba35011723a5267 (diff) | |
download | rails-1ec601b4e3a4f8dbad56185a7a4ae5a8cc598002.tar.gz rails-1ec601b4e3a4f8dbad56185a7a4ae5a8cc598002.tar.bz2 rails-1ec601b4e3a4f8dbad56185a7a4ae5a8cc598002.zip |
Merge pull request #16220 from pcreux/postgresql-jsonb-support
Add support for Postgresql JSONB
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb index 0867e5ef54..83554bbf74 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_definitions.rb @@ -64,6 +64,10 @@ module ActiveRecord column(name, :json, options) end + def jsonb(name, options = {}) + column(name, :jsonb, options) + end + def citext(name, options = {}) column(name, :citext, options) end |