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