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
This commit is contained in:
David Heinemeier Hansson
2007-12-14 17:51:02 +00:00
parent 9187ed8656
commit 3aa54c5e44
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
*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]

View File

@@ -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'