if you have upgraded
- PostgreSQL with homebrew (brew update && brew upgrade),
- macOS (eg. from Catalina to BigSur)
then simply uninstall the pg gem:
gem uninstall pg
bundle install
and the path will be corrected for you. No need to uninstall the whole PostgreSQL cluster.