method

index_exists?

rails latest stable - Class: ActiveRecord::Migration::Compatibility::FourTwoShared

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.

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