mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #14193 from ys/patch-1
Add missing parantheses in index_exists?
This commit is contained in:
commit
c55f339007
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ module ActiveRecord
|
||||||
# index_exists?(:suppliers, :company_id, unique: true)
|
# index_exists?(:suppliers, :company_id, unique: true)
|
||||||
#
|
#
|
||||||
# # Check an index with a custom name exists
|
# # Check an index with a custom name exists
|
||||||
# index_exists?(:suppliers, :company_id, name: "idx_company_id"
|
# index_exists?(:suppliers, :company_id, name: "idx_company_id")
|
||||||
#
|
#
|
||||||
def index_exists?(table_name, column_name, options = {})
|
def index_exists?(table_name, column_name, options = {})
|
||||||
column_names = Array(column_name)
|
column_names = Array(column_name)
|
||||||
|
|
Loading…
Reference in a new issue