aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration/index_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2016-11-04 04:06:50 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-02-13 12:35:30 +0900
commit28dc6d76ab302340e98fad7f8718c440e5b1e2d8 (patch)
treeeee792f3c08b74c7e13b640ee8dd7a0123c539de /activerecord/test/cases/migration/index_test.rb
parent5e67187979e56b9cad666abe40ca86a89f304f8f (diff)
downloadrails-28dc6d76ab302340e98fad7f8718c440e5b1e2d8.tar.gz
rails-28dc6d76ab302340e98fad7f8718c440e5b1e2d8.tar.bz2
rails-28dc6d76ab302340e98fad7f8718c440e5b1e2d8.zip
Deprecate passing `default` to `index_name_exists?`
Diffstat (limited to 'activerecord/test/cases/migration/index_test.rb')
-rw-r--r--activerecord/test/cases/migration/index_test.rb6
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