Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Delete blank lines in migration generator

  • Loading branch information...
commit 12b2f8b040aeb7a69150dff7534b82ef633be331 1 parent 70b9db1
Santiago Pastorino authored February 02, 2011
5  activerecord/lib/rails/generators/active_record/model/templates/migration.rb
@@ -8,11 +8,10 @@ def change
8 8
       t.timestamps
9 9
 <% end -%>
10 10
     end
11  
-
12  
-<% if options[:indexes] %>
  11
+<% if options[:indexes] -%>
13 12
 <% attributes.select {|attr| attr.reference? }.each do |attribute| -%>
14 13
     add_index :<%= table_name %>, :<%= attribute.name %>_id
15 14
 <% end -%>
16  
-<% end %>
  15
+<% end -%>
17 16
   end
18 17
 end

0 notes on commit 12b2f8b

Please sign in to comment.
Something went wrong with that request. Please try again.