aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-11-02 20:04:41 -0200
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-11-02 20:07:46 -0200
commit743d07ea2c3303b0f400f145f45686848e4bb762 (patch)
tree759da05470f728fd6750131e8f62aaea6144ca40 /activerecord/lib/active_record
parent7042fe2f8428b713894601a9bc9bdcdbcdbfb37b (diff)
downloadrails-743d07ea2c3303b0f400f145f45686848e4bb762.tar.gz
rails-743d07ea2c3303b0f400f145f45686848e4bb762.tar.bz2
rails-743d07ea2c3303b0f400f145f45686848e4bb762.zip
Remove old comment
This comment is not valid since that `if` is there to make possible to do: remove_index :users, :name Instead of: remove_index :users, column: :name What is a valid use case. [ci skip]
Diffstat (limited to 'activerecord/lib/active_record')
-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 2d7ec55d3e..73aaffc146 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -422,7 +422,7 @@ module ActiveRecord
end
def index_name(table_name, options) #:nodoc:
- if Hash === options # legacy support
+ if Hash === options
if options[:column]
"index_#{table_name}_on_#{Array(options[:column]) * '_and_'}"
elsif options[:name]