X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/da80f4a198e734313a7991466244083dabd64b00..f08a738f1565b2dabde28dc9e8d1bad9622d5529:/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