Last active
December 23, 2015 23:19
-
-
Save skamithi/6708737 to your computer and use it in GitHub Desktop.
rake test to clean out test and dev db. Then regenerate both dbs.
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 | |
desc 'regenerate test and dev db' | |
task :regenerate do | |
Rake::Task['db:drop'].invoke | |
Rake::Task['db:create'].invoke | |
Rake::Task['db:migrate'].invoke | |
Rake::Task['db:test:purge'].invoke | |
Rake::Task['db:test:prepare'].invoke | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment