Created
August 19, 2013 10:28
-
-
Save ericchen0121/6267763 to your computer and use it in GitHub Desktop.
rakefile configuration for the master command... 'rake reset'
This file contains 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
#!/usr/bin/env rake | |
# Add your own tasks in files placed in lib/tasks ending in .rake, | |
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | |
require File.expand_path('../config/application', __FILE__) | |
Stacked::Application.load_tasks | |
desc "reset everything" | |
task "reset" do | |
exec "rake db:drop && rake db:create && rake db:migrate && rake db:seed && rake db:test:prepare && bundle exec annotate" | |
puts "Database dropped, created, migrated, seeded, test:prepared, and models annotated" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment