提交 50be89b6 编写于 作者: J Jeremy Kemper

Shorten index name.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4777 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 7aaf4867
......@@ -48,5 +48,5 @@ def create_table(*args, &block)
t.column :source_id, :integer, :null => false
t.column :sink_id, :integer, :null => false
end
add_index :edges, [:source_id, :sink_id], :unique => true
add_index :edges, [:source_id, :sink_id], :unique => true, :name => 'unique_edge_index'
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册