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
This commit is contained in:
parent
045f5fd02e
commit
5afbffdd95
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user