method
index_exists?
rails latest stable - Class:
ActiveRecord::Migration::Compatibility::FourTwoShared
index_exists?(table_name, column_name, options = {})public
No documentation available.
# File activerecord/lib/active_record/migration/compatibility.rb, line 67
def index_exists?(table_name, column_name, options = {})
column_names = Array(column_name).map(&:to_s)
options[:name] =
if options[:name].present?
options[:name].to_s
else
index_name(table_name, column: column_names)
end
super
end