diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-02-14 01:19:57 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-02-14 03:00:40 +0900 |
commit | 3cb27c50b9af388219e88b8e094b422234ad4caf (patch) | |
tree | d5cda87e61016bb27ab8b5ab5b70f0bc413d1a66 /activerecord/lib/active_record/schema_dumper.rb | |
parent | 1c968b484bffb2a7b206b47434f7cf61d10e85a2 (diff) | |
download | rails-3cb27c50b9af388219e88b8e094b422234ad4caf.tar.gz rails-3cb27c50b9af388219e88b8e094b422234ad4caf.tar.bz2 rails-3cb27c50b9af388219e88b8e094b422234ad4caf.zip |
Add `default_index_type?` to the generic schema dumper doesn't have the knowledge about an index type
Diffstat (limited to 'activerecord/lib/active_record/schema_dumper.rb')
-rw-r--r-- | activerecord/lib/active_record/schema_dumper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb index cf4495326b..15533f0151 100644 --- a/activerecord/lib/active_record/schema_dumper.rb +++ b/activerecord/lib/active_record/schema_dumper.rb @@ -188,7 +188,7 @@ HEADER index_parts << "length: { #{format_options(index.lengths)} }" if index.lengths.present? index_parts << "order: { #{format_options(index.orders)} }" if index.orders.present? index_parts << "where: #{index.where.inspect}" if index.where - index_parts << "using: #{index.using.inspect}" if index.using && index.using != :btree + index_parts << "using: #{index.using.inspect}" if !@connection.default_index_type?(index) index_parts << "type: #{index.type.inspect}" if index.type index_parts << "comment: #{index.comment.inspect}" if index.comment index_parts |