Skip to content

Commit

Permalink
Merge pull request rails#5616 from cbartlett/migration-indent
Browse files Browse the repository at this point in the history
Fix indenting in migration generator
  • Loading branch information
spastorino committed Mar 28, 2012
1 parent f8b4ef1 commit 2d5b60e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -13,9 +13,9 @@ def up
<% attributes.each do |attribute| -%>
<%- if migration_action -%>
<%= migration_action %>_column :<%= table_name %>, :<%= attribute.name %><% if migration_action == 'add' %>, :<%= attribute.type %><%= attribute.inject_options %><% end %>
<% if attribute.has_index? && migration_action == 'add' %>
<%- if attribute.has_index? && migration_action == 'add' -%>
add_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %>
<% end -%>
<%- end -%>
<%- end -%>
<%- end -%>
end
Expand Down

0 comments on commit 2d5b60e

Please sign in to comment.