Migrations created alongside models should be called CreateModels not...

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
上级 045f5fd0
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册