Instead of running each rake task individually like this:
rake db:drop rake db:create rake db:migrate rake db:load
I want to run one rake task
namespace :rebuild_dev do desc 'This rebuilds development db' task :clean_slate => :environment do Rake::Task["db:drop"].invoke Rake::Task["db:create"].invoke Rake::Task["db:migrate"].invoke Rake::Task["db:load"].invoke end end