Setup

I like to use Rails with postgres a lot, this is how to make a new Rails project with Postgres as the default database adapter:

rails new myapp --database=postgresql

In some cases I use Rails without ActiveRecord (e.g. mongoid for MongoDB, like so:

rails new myapp --skip-active-record

Last updated