Permalink
Browse files

for => each in model migration template

  • Loading branch information...
guilleiguaran committed May 20, 2011
1 parent e7d600d commit 159213001ae1d13d0d3eb7947c0595328ef16945
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/rails/generators/active_record/model/templates/migration.rb
@@ -1,7 +1,7 @@
class <%= migration_class_name %> < ActiveRecord::Migration
def change
create_table :<%= table_name %> do |t|
-<% for attribute in attributes -%>
+<% attributes.each do |attribute| -%>
t.<%= attribute.type %> :<%= attribute.name %>
<% end -%>
<% if options[:timestamps] %>

0 comments on commit 1592130

Please sign in to comment.