X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/45f10d80d1b584808a6e375214b5be6bc7d2a730..694f3f5c05a37cdf6e70a164b0c8dd8171b97cda:/services/api/Rakefile diff --git a/services/api/Rakefile b/services/api/Rakefile index fbbf53e3c6..67e4202ba2 100644 --- a/services/api/Rakefile +++ b/services/api/Rakefile @@ -4,12 +4,6 @@ require File.expand_path('../config/application', __FILE__) -begin - ok = PgPower -rescue - abort "Hm, pg_power is missing. Make sure you use 'bundle exec rake ...'" -end - Server::Application.load_tasks namespace :test do @@ -63,3 +57,13 @@ namespace :db do end end end + +# Work around Rails3+PostgreSQL9.5 incompatibility (pg_dump used to +# accept -i as a no-op, but now it's not accepted at all). +module Kernel + alias_method :orig_backtick, :` + def `(*args) #`#` sorry, parsers + args[0].sub!(/\Apg_dump -i /, 'pg_dump ') rescue nil + orig_backtick(*args) + end +end