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
Written by Paul Elliott
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#