rails new app postgresql api code example
Example 1: start rails api postgres
rails new project-name-here --api --database=postgresql
Example 2: create rails app with postgres
rails new myapp --database=postgresql
rails new project-name-here --api --database=postgresql
rails new myapp --database=postgresql