Installing PostgreSQL

There are two ways to install PostgreSQL in mac.

Postgres.app

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.

Installing PostgreSQL using homebrew

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.