add rake_util

This commit is contained in:
Seth Call 2021-03-15 08:59:46 -05:00
parent 4dbf9fa17c
commit 9a0c70517b
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
module JamRuby
class RakeUtil
def self.migrations_path
if ENV['RAILS_ENV'] == 'production'
"/var/lib/jam-web/vendor/bundle/ruby/2.3.0/gems/jam_ruby-0.1.#{ENV['BUILD_NUMBER']}/db/migrate"
else
File.expand_path("../../../db/migrate", __FILE__)
end
end
end
end