Delete blank lines in migration generator

This commit is contained in:
Santiago Pastorino
2011-02-02 16:19:52 -02:00
parent 70b9db173e
commit 12b2f8b040

View File

@@ -8,11 +8,10 @@ class <%= migration_class_name %> < ActiveRecord::Migration
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