Skip to content

Instantly share code, notes, and snippets.

@coderberry
Created July 10, 2014 14:46
Show Gist options
  • Save coderberry/bce5c869d763d0812daa to your computer and use it in GitHub Desktop.
Save coderberry/bce5c869d763d0812daa to your computer and use it in GitHub Desktop.
rake db:migrate:reset_all
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