X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f4ca9ad94a6bb006d1f3c7ba207837f1736d1247..0654fa160f872fe20ea4ada42a655f9d154c0833:/services/api/Rakefile diff --git a/services/api/Rakefile b/services/api/Rakefile index fbbf53e3c6..925e6c2d1d 100644 --- a/services/api/Rakefile +++ b/services/api/Rakefile @@ -63,3 +63,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