Update web and data containers fails at rake db:migrate with PG::ConnectionBad

Interesting, so your actual error was

PG::ConnectionBad: PQconsumeInput() server closed the connection unexpectedly