connect rails app with psql code example Example: create rails app with postgres rails new myapp --database=postgresql