提交 12b2f8b0 编写于 作者: S Santiago Pastorino

Delete blank lines in migration generator

上级 70b9db17
......@@ -8,11 +8,10 @@ def change
t.timestamps
<% end -%>
end
<% if options[:indexes] %>
<% if options[:indexes] -%>
<% attributes.select {|attr| attr.reference? }.each do |attribute| -%>
add_index :<%= table_name %>, :<%= attribute.name %>_id
<% end -%>
<% end %>
<% end -%>
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册