When running the rake db:structure:dump
command, I encountered the following error:
Larson-2:app larson$ rake db:structure:dump
pg_dump: server version: 9.1.3; pg_dump version: 9.0.4
pg_dump: aborting because of server version mismatch
rake aborted!
Error dumping database
How can I go about updating pg_dump? I have pg 9.1.3 installed, is there a way to update the references inside of Rails to the new version?
When I try to update postgres via homebrew, I get the following output:
Larson-2:app larson$ sudo brew upgrade postgresql
Password:
Error: postgresql already upgraded