Skip to content

Instantly share code, notes, and snippets.

@bleonard
Created December 24, 2016 18:09
Show Gist options
  • Save bleonard/a14a6d32d94ca1606e49bd04cac9ffbd to your computer and use it in GitHub Desktop.
Save bleonard/a14a6d32d94ca1606e49bd04cac9ffbd to your computer and use it in GitHub Desktop.
namespace :offshore do
task :preload do
ENV['RAILS_ENV'] = "test"
end
task :setup => :environment
desc "seeds the db for offshore gem"
task :seed do
Rake::Task['db:migrate'].invoke
Rake::Task['db:test:prepare'].invoke
Rake::Task['db:seed'].invoke
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment