instance method
index_exists?
Ruby on Rails 4.0.13
Since v3.0.20Signature
index_exists?(column_name, options = {})
Checks to see if an index exists. See SchemaStatements#index_exists?
Parameters
-
column_namereq -
optionsopt = {}
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 382
def index_exists?(column_name, options = {})
@base.index_exists?(@table_name, column_name, options)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb line 382
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::Table