Jupitor$ bundle exec rake db:create db:migrate
APP_development already exists
rake aborted!
PG::Error: ERROR: invalid value for parameter \"TimeZone\": \"UTC\"
: SET ti
brew services restart postgresql
did not fix for me. I'm sure rebooting would've worked, but I wanted to figure out the cause of the issue.
I believe the issue was caused for me because of two conflicting versions of postgresql
.
I already had postgresql
running with brew services, and then installed postgresql@11
which left postgresql
running in brew services even after I uninstalled postgresql
.
I fixed this by stopping the postgresql
brew service, even though it wasn't listed in brew services list
.
Steps to reproduce:
$ brew install postgresql
$ brew services start postgresql
$ brew install postgresql@11
$ brew uninstall postgresql
$ brew services start postgresql@11
How to fix:
$ brew services stop postgresql
Opened an issue on Homebrew requesting that a formula's service should automatically be stopped upon uninstall.