提交 c0fa4de6 编写于 作者: W wycats

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

上级 8d9d8bc9
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册