#!/usr/bin/env rake require "bundler/gem_tasks" namespace :db do desc "prepare db for specs" task "prepare" do `cd spec/dummy && bundle exec rake db:drop` `cd spec/dummy && bundle exec rake db:create db:migrate db:test:prepare` end end