Permalink
Browse files

Migrations created alongside models should be called CreateModels not…

… AddModels for consistency with the create/drop notion of tables [Dave Thomas]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 045f5fd commit 5afbffdd95c738f33f41efc0a42af1b73ad4dfe4 @dhh dhh committed Mar 5, 2006
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails_generator/generators/components/model/model_generator.rb
@@ -18,8 +18,8 @@ def manifest
unless options[:skip_migration]
m.migration_template 'migration.rb', 'db/migrate', :assigns => {
- :migration_name => "Add#{class_name.pluralize}"
- }, :migration_file_name => "add_#{file_name.pluralize}"
+ :migration_name => "Create#{class_name.pluralize}"
+ }, :migration_file_name => "create_#{file_name.pluralize}"
end
end
end

0 comments on commit 5afbffd

Please sign in to comment.