diff options
| author | Ryuta Kamizono <kamipo@gmail.com> | 2016-11-04 04:06:50 +0900 | 
|---|---|---|
| committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-02-13 12:35:30 +0900 | 
| commit | 28dc6d76ab302340e98fad7f8718c440e5b1e2d8 (patch) | |
| tree | eee792f3c08b74c7e13b640ee8dd7a0123c539de /activerecord/test | |
| parent | 5e67187979e56b9cad666abe40ca86a89f304f8f (diff) | |
| download | rails-28dc6d76ab302340e98fad7f8718c440e5b1e2d8.tar.gz rails-28dc6d76ab302340e98fad7f8718c440e5b1e2d8.tar.bz2 rails-28dc6d76ab302340e98fad7f8718c440e5b1e2d8.zip | |
Deprecate passing `default` to `index_name_exists?`
Diffstat (limited to 'activerecord/test')
| -rw-r--r-- | activerecord/test/cases/migration/index_test.rb | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/activerecord/test/cases/migration/index_test.rb b/activerecord/test/cases/migration/index_test.rb index 9223af5102..f10fcf1398 100644 --- a/activerecord/test/cases/migration/index_test.rb +++ b/activerecord/test/cases/migration/index_test.rb @@ -31,8 +31,10 @@ module ActiveRecord          connection.add_index(table_name, [:foo], name: "old_idx")          connection.rename_index(table_name, "old_idx", "new_idx") -        assert_not connection.index_name_exists?(table_name, "old_idx") -        assert connection.index_name_exists?(table_name, "new_idx") +        assert_deprecated do +          assert_not connection.index_name_exists?(table_name, "old_idx", false) +          assert connection.index_name_exists?(table_name, "new_idx", true) +        end        end        def test_rename_index_too_long | 
