> For the complete documentation index, see [llms.txt](https://wiki.omar.engineer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.omar.engineer/programming-languages/ruby/ruby-on-rails/setup.md).

# 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](https://github.com/mongodb/mongoid) for [MongoDB](https://www.mongodb.com/), like so:

```
rails new myapp --skip-active-record
```
