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