提交 3aa54c5e 编写于 作者: D David Heinemeier Hansson

Added db:migrate:redo and db:migrate:reset for rerunning existing migrations...

Added db:migrate:redo and db:migrate:reset for rerunning existing migrations #10431, (closes #10432) [matt]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8383 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 9187ed86
*SVN*
* Added db:migrate:redo for rerunning existing migrations #10431 [matt]
* Added db:migrate:redo and db:migrate:reset for rerunning existing migrations #10431, #10432 [matt]
* RAILS_GEM_VERSION may be double-quoted also. #10443 [James Cox]
......
......@@ -89,6 +89,9 @@ namespace :db do
namespace :migrate do
desc 'Rollbacks the database one migration and re migrate up. If you want to rollback more than one step, define STEP=x'
task :redo => [ 'db:rollback', 'db:migrate' ]
desc 'Resets your database using your migrations for the current environment'
task :reset => ["db:drop", "db:create", "db:migrate"]
end
desc 'Rolls the schema back to the previous version. Specify the number of steps with STEP=n'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册