How To Use PostgreSQL with Your Ruby on Rails Application on Ubuntu 14.04
Ruby on Rails uses sqlite3 as its default database, which works great in many cases, but may not be sufficient for your application. If your application requires the scalability, centralization, and control (or any other feature) that is provided by a client/server SQL database offers, this tutorial will show you how to do just that, with PostgreSQL, on Ubuntu 14.04.