diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-07-17 17:58:56 -0400 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-10-23 12:50:45 -0400 |
commit | 8f5b34df81175e30f68879479243fbce966122d7 (patch) | |
tree | 5a364b84c61ad0bceb543dc1cd5ae8bb80ce1d64 /activerecord/test/cases/migration | |
parent | 82472b3922bda2f337a79cef961b4760d04f9689 (diff) | |
download | rails-8f5b34df81175e30f68879479243fbce966122d7.tar.gz rails-8f5b34df81175e30f68879479243fbce966122d7.tar.bz2 rails-8f5b34df81175e30f68879479243fbce966122d7.zip |
Remove deprecated argument `default` from `index_name_exists?`
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r-- | activerecord/test/cases/migration/index_test.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/test/cases/migration/index_test.rb b/activerecord/test/cases/migration/index_test.rb index bf1ebdb4c5..b25c6d84bc 100644 --- a/activerecord/test/cases/migration/index_test.rb +++ b/activerecord/test/cases/migration/index_test.rb @@ -33,10 +33,8 @@ module ActiveRecord connection.add_index(table_name, [:foo], name: "old_idx") connection.rename_index(table_name, "old_idx", "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 + assert_not connection.index_name_exists?(table_name, "old_idx") + assert connection.index_name_exists?(table_name, "new_idx") end def test_rename_index_too_long |