aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-07-17 17:58:56 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-10-23 12:50:45 -0400
commit8f5b34df81175e30f68879479243fbce966122d7 (patch)
tree5a364b84c61ad0bceb543dc1cd5ae8bb80ce1d64 /activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
parent82472b3922bda2f337a79cef961b4760d04f9689 (diff)
downloadrails-8f5b34df81175e30f68879479243fbce966122d7.tar.gz
rails-8f5b34df81175e30f68879479243fbce966122d7.tar.bz2
rails-8f5b34df81175e30f68879479243fbce966122d7.zip
Remove deprecated argument `default` from `index_name_exists?`
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
index 79cb4e276d..d90dc8a99c 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
@@ -66,12 +66,7 @@ module ActiveRecord
end
# Verifies existence of an index with a given name.
- def index_name_exists?(table_name, index_name, default = nil)
- unless default.nil?
- ActiveSupport::Deprecation.warn(<<-MSG.squish)
- Passing default to #index_name_exists? is deprecated without replacement.
- MSG
- end
+ def index_name_exists?(table_name, index_name)
table = quoted_scope(table_name)
index = quoted_scope(index_name)