From 9a0c70517b3b7b6bc9b375c2959e964ae7d14530 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Mon, 15 Mar 2021 08:59:46 -0500 Subject: [PATCH] add rake_util --- ruby/lib/jam_ruby/rake_util.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ruby/lib/jam_ruby/rake_util.rb diff --git a/ruby/lib/jam_ruby/rake_util.rb b/ruby/lib/jam_ruby/rake_util.rb new file mode 100644 index 000000000..087c03546 --- /dev/null +++ b/ruby/lib/jam_ruby/rake_util.rb @@ -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 \ No newline at end of file