aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2014-02-25 17:48:15 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2014-02-25 17:48:15 +0530
commitc55f339007f9fc86cf52270e4ca0466719750032 (patch)
tree326ad467a06ec8eef7c663778947c58b4e2f8001 /activerecord
parent71b3910a7d6c9c9a94af31510683390c2b3a1b23 (diff)
parentbe37b0c143da6dc682fd53eab744e0c1115063d1 (diff)
downloadrails-c55f339007f9fc86cf52270e4ca0466719750032.tar.gz
rails-c55f339007f9fc86cf52270e4ca0466719750032.tar.bz2
rails-c55f339007f9fc86cf52270e4ca0466719750032.zip
Merge pull request #14193 from ys/patch-1
Add missing parantheses in index_exists?
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
index ad069f5e53..7f530ec5e4 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -40,7 +40,7 @@ module ActiveRecord
# index_exists?(:suppliers, :company_id, unique: true)
#
# # 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 = {})
column_names = Array(column_name)