Skip to content

Commit

Permalink
Correctly use AR's sexy migrations in the template.
Browse files Browse the repository at this point in the history
It used to mix up order of method and value.
  • Loading branch information
Michael Klishin authored and Michael Klishin committed Sep 23, 2008
1 parent 0f95f92 commit 8da9867
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2,7 +2,7 @@ class <%= class_name %> < ActiveRecord::Migration
def self.up
<% if model -%>
create_table :<%= table_name %> do |t|
<% attributes.each do |name, type| -%>
<% attributes.each do |type, name| -%>
t.<%= name %> :<%= type %>
<% end -%>
Expand Down

0 comments on commit 8da9867

Please sign in to comment.