There are two ways to install PostgreSQL in mac.
If you are using a Mac, http://postgresapp.com is an easy way to install PostgreSQL.
The config/database.yml
file should like as shown
here.
brew install postgresql
After install pg you can check the version you are running by executing postgres -V
.
The config/database.yml
file should like as shown
here.