how to create a rails api with postgresql code example Example: start rails api postgres rails new project-name-here --api --database=postgresql