diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-05 00:45:19 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-05 00:45:19 +0000 |
commit | 5afbffdd95c738f33f41efc0a42af1b73ad4dfe4 (patch) | |
tree | 330797ec2f6709d66b2a29bf6fdc9bbf925b11cc /railties | |
parent | 045f5fd02e8418fedba651b329715a0bb5ea8c68 (diff) | |
download | rails-5afbffdd95c738f33f41efc0a42af1b73ad4dfe4.tar.gz rails-5afbffdd95c738f33f41efc0a42af1b73ad4dfe4.tar.bz2 rails-5afbffdd95c738f33f41efc0a42af1b73ad4dfe4.zip |
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
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails_generator/generators/components/model/model_generator.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/components/model/model_generator.rb b/railties/lib/rails_generator/generators/components/model/model_generator.rb index 9cadf863fb..bd73f5bcdd 100644 --- a/railties/lib/rails_generator/generators/components/model/model_generator.rb +++ b/railties/lib/rails_generator/generators/components/model/model_generator.rb @@ -18,8 +18,8 @@ class ModelGenerator < Rails::Generator::NamedBase 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 |