setup rails api with rspec and postgres code example Example: rails api only with postgress and rspec rails new app-name --api -T -d postgresql