Last Updated: February 25, 2016
·
880
· paulelliott

Automatically db:test:prepare

lib/tasks/db.rake

namespace :db do
  task :migrate => :environment do
    if Rails.env.development?
      Rake::Task['db:test:prepare'].invoke
    end
  end
end