Skip to content

Commit

Permalink
Remove old comment
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
rafaelfranca committed Nov 2, 2012
1 parent 7042fe2 commit 743d07e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def rename_index(table_name, old_name, new_name)
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]
Expand Down

0 comments on commit 743d07e

Please sign in to comment.