Created
April 16, 2011 00:56
-
-
Save gilesbowkett/922730 to your computer and use it in GitHub Desktop.
please correct me
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 :myapp do | |
def invoke(tasks) # did I really need to write this method? aargh | |
tasks.each {|t| Rake::Task[t].invoke} | |
end | |
desc "dump everything (in order to re-seed)" | |
task :renew do | |
invoke(%w{db:drop db:create db:migrate}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
task :renew => ['db:drop', 'db:create', 'db:migrate']