Ruby on Rails connect to PostgreSQL code example Example: postgresql rails rails new myApp --database=postgresql