Permalink
Browse files

Flatten the list of columns given to create_index

  • Loading branch information...
1 parent 156dc7c commit 63ebf04ef40b569c460f9f7c791bb55fcb3edfd2 Paul Sadauskas committed Sep 29, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 dm-migrations/lib/migration.rb
@@ -104,7 +104,7 @@ def create_index(table_name, *columns_and_options)
else
opts = {}
end
- columns = columns_and_options
+ columns = columns_and_options.flatten
opts[:name] ||= "#{opts[:unique] ? 'unique_' : ''}index_#{table_name}_#{columns.join('_')}"

0 comments on commit 63ebf04

Please sign in to comment.