diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-02-13 12:04:50 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 12:04:50 -0300 |
commit | fab91c684be248a36446b6c389865594707e7d57 (patch) | |
tree | 645fdbd41d11fa28137d1dbfa9ac48b0919c1800 /activerecord/lib | |
parent | fd6d286edac93acc70e7cccdaca4ba31064cdf25 (diff) | |
parent | 6d37cd918dba5b492194afbc1094a6503c88f379 (diff) | |
download | rails-fab91c684be248a36446b6c389865594707e7d57.tar.gz rails-fab91c684be248a36446b6c389865594707e7d57.tar.bz2 rails-fab91c684be248a36446b6c389865594707e7d57.zip |
Merge pull request #27981 from kamipo/omit_redundant_using_btree
Omit redundant `using: :btree` for schema dumping
Diffstat (limited to 'activerecord/lib')
-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 12289511b7..cf4495326b 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_parts << "using: #{index.using.inspect}" if index.using && index.using != :btree index_parts << "type: #{index.type.inspect}" if index.type index_parts << "comment: #{index.comment.inspect}" if index.comment index_parts |