mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
@@ -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]
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user