Created
July 10, 2014 14:46
-
-
Save coderberry/bce5c869d763d0812daa to your computer and use it in GitHub Desktop.
rake db:migrate:reset_all
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :db do | |
namespace :migrate do | |
desc "runs db:drop db:create db:migrate for both development and test environments" | |
task :reset_all do | |
system('bundle exec rake db:migrate:reset') | |
system('bundle exec rake db:migrate:reset RAILS_ENV=test') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment