diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-14 17:51:02 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-14 17:51:02 +0000 |
commit | 3aa54c5e44f8f0d9e5ed7a346084884ed07b89d0 (patch) | |
tree | c195e34b5c7bc008780ff49629504c0de7c8c365 /railties/lib/tasks/databases.rake | |
parent | 9187ed86562794e1d078fdf7158cd6f8ea5fbf3b (diff) | |
download | rails-3aa54c5e44f8f0d9e5ed7a346084884ed07b89d0.tar.gz rails-3aa54c5e44f8f0d9e5ed7a346084884ed07b89d0.tar.bz2 rails-3aa54c5e44f8f0d9e5ed7a346084884ed07b89d0.zip |
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
Diffstat (limited to 'railties/lib/tasks/databases.rake')
-rw-r--r-- | railties/lib/tasks/databases.rake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake index f1a8e10170..e8fb3bb1a1 100644 --- a/railties/lib/tasks/databases.rake +++ b/railties/lib/tasks/databases.rake @@ -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' |