diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-10-26 03:19:37 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-10-26 03:19:37 +0900 |
commit | 07ee01c153865a0cdfad9068b096bf5c4443c396 (patch) | |
tree | 8cdc5350babc7587274fee1003834373994c6fa3 /activerecord/test | |
parent | d4fb64b316f0f55468b17c58b50c384b04c5972b (diff) | |
download | rails-07ee01c153865a0cdfad9068b096bf5c4443c396.tar.gz rails-07ee01c153865a0cdfad9068b096bf5c4443c396.tar.bz2 rails-07ee01c153865a0cdfad9068b096bf5c4443c396.zip |
Third party adapters doesn't support index orders yet
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/schema_dumper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/schema_dumper_test.rb b/activerecord/test/cases/schema_dumper_test.rb index a03fd39abc..ac5092f1c1 100644 --- a/activerecord/test/cases/schema_dumper_test.rb +++ b/activerecord/test/cases/schema_dumper_test.rb @@ -177,7 +177,7 @@ class SchemaDumperTest < ActiveRecord::TestCase def test_schema_dumps_index_columns_in_right_order index_definition = dump_table_schema("companies").split(/\n/).grep(/t\.index.*company_index/).first.strip - if current_adapter?(:PostgreSQLAdapter) + if current_adapter?(:PostgreSQLAdapter, :SQLite3Adapter) assert_equal 't.index ["firm_id", "type", "rating"], name: "company_index", order: { rating: :desc }', index_definition elsif current_adapter?(:Mysql2Adapter) if ActiveRecord::Base.connection.supports_index_sort_order? @@ -186,7 +186,7 @@ class SchemaDumperTest < ActiveRecord::TestCase assert_equal 't.index ["firm_id", "type", "rating"], name: "company_index", length: { type: 10 }', index_definition end else - assert_equal 't.index ["firm_id", "type", "rating"], name: "company_index", order: { rating: :desc }', index_definition + assert_equal 't.index ["firm_id", "type", "rating"], name: "company_index"', index_definition end end |