Skip to content

Instantly share code, notes, and snippets.

@ericchen0121
Created August 19, 2013 10:28
Show Gist options
  • Save ericchen0121/6267763 to your computer and use it in GitHub Desktop.
Save ericchen0121/6267763 to your computer and use it in GitHub Desktop.
rakefile configuration for the master command... 'rake reset'
#!/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