the command to build your rails json api with postgres explained code example Example: start rails api postgres rails new project-name-here --api --database=postgresql