setup postgres for use with Ruby on Rails code example Example: create rails app with postgres rails new myapp --database=postgresql