diff options
Diffstat (limited to 'activerecord/lib/rails/generators/active_record/model/templates/migration.rb')
-rw-r--r-- | activerecord/lib/rails/generators/active_record/model/templates/migration.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/activerecord/lib/rails/generators/active_record/model/templates/migration.rb b/activerecord/lib/rails/generators/active_record/model/templates/migration.rb deleted file mode 100644 index 3a3cf86d73..0000000000 --- a/activerecord/lib/rails/generators/active_record/model/templates/migration.rb +++ /dev/null @@ -1,15 +0,0 @@ -class <%= migration_class_name %> < ActiveRecord::Migration - def change - create_table :<%= table_name %> do |t| -<% attributes.each do |attribute| -%> - t.<%= attribute.type %> :<%= attribute.name %><%= attribute.inject_options %> -<% end -%> -<% if options[:timestamps] %> - t.timestamps -<% end -%> - end -<% attributes_with_index.each do |attribute| -%> - add_index :<%= table_name %>, :<%= attribute.index_name %><%= attribute.inject_index_options %> -<% end -%> - end -end |