diff options
Diffstat (limited to 'railties/lib/rails_generator/generators/components/model')
-rw-r--r-- | railties/lib/rails_generator/generators/components/model/templates/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails_generator/generators/components/model/templates/migration.rb b/railties/lib/rails_generator/generators/components/model/templates/migration.rb index 2a305a6a9d..cb1ddd399e 100644 --- a/railties/lib/rails_generator/generators/components/model/templates/migration.rb +++ b/railties/lib/rails_generator/generators/components/model/templates/migration.rb @@ -2,7 +2,7 @@ class <%= migration_name %> < ActiveRecord::Migration def self.up create_table :<%= table_name %> do |t| <% for attribute in attributes -%> - t.column :<%= attribute.name %>, :<%= attribute.type %> + t.<%= attribute.type %> :<%= attribute.name %> <% end -%> end end |