diff options
Diffstat (limited to 'railties/lib')
-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' |