jam-cloud/ruby/lib/jam_ruby/rake_util.rb

11 lines
304 B
Ruby
Raw Normal View History

2021-03-15 13:59:46 +00:00
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