2014-02-06 14:15:00 -05:00
|
|
|
#!/usr/bin/env ruby
|
2018-12-06 01:19:46 -05:00
|
|
|
|
|
|
|
if ENV['RAILS_ENV'] == 'test' && ENV['LOAD_PLUGINS'].nil?
|
|
|
|
if ARGV.include?('db:migrate')
|
|
|
|
STDERR.puts "You are attempting to run migrations in your test environment and are not loading plugins, setting LOAD_PLUGINS to 1"
|
|
|
|
ENV['LOAD_PLUGINS'] = '1'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2015-04-16 02:15:04 -04:00
|
|
|
require_relative '../config/boot'
|
|
|
|
require 'rake'
|
|
|
|
Rake.application.run
|