diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-02 20:04:41 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-11-02 20:07:46 -0200 |
commit | 743d07ea2c3303b0f400f145f45686848e4bb762 (patch) | |
tree | 759da05470f728fd6750131e8f62aaea6144ca40 /activerecord/lib/active_record | |
parent | 7042fe2f8428b713894601a9bc9bdcdbcdbfb37b (diff) | |
download | rails-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.rb | 2 |
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] |