2014-02-06 11:15:00 -08:00
|
|
|
#!/usr/bin/env ruby
|
2019-05-03 08:17:27 +10:00
|
|
|
# frozen_string_literal: true
|
2018-12-06 17:19:46 +11:00
|
|
|
|
|
|
|
|
if ENV['RAILS_ENV'] == 'test' && ENV['LOAD_PLUGINS'].nil?
|
2022-09-20 15:42:54 +01:00
|
|
|
if ARGV.include?('db:migrate') || ARGV.include?('parallel:migrate')
|
2018-12-06 17:19:46 +11:00
|
|
|
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 16:15:04 +10:00
|
|
|
require_relative '../config/boot'
|
|
|
|
|
require 'rake'
|
|
|
|
|
Rake.application.run
|