Permalink
Browse files

Allow :name to be a Symbol (was this removed by accident?)

  • Loading branch information...
wycats committed Aug 3, 2010
1 parent 4474470 commit 7a1bba4799f3fae2c3699816bc071128fd591461
@@ -327,6 +327,8 @@ def rename_column(table_name, column_name, new_column_name)
#
# Note: SQLite doesn't support index length
def add_index(table_name, column_name, options = {})
+ options[:name] = options[:name].to_s if options.key?(:name)
+
column_names = Array.wrap(column_name)
index_name = index_name(table_name, :column => column_names)

0 comments on commit 7a1bba4

Please sign in to comment.