---
title: "Rails 6.1 adds --minimal option support"
description: "Rails 6.1 adds --minimal support to create bare minimum app"
canonical_url: "https://www.bigbinary.com/blog/rails-6-1-adds-minimal-option-support"
markdown_url: "https://www.bigbinary.com/blog/rails-6-1-adds-minimal-option-support.md"
---

# Rails 6.1 adds --minimal option support

Rails 6.1 adds --minimal support to create bare minimum app

- Author: Sandip Mane
- Published: September 8, 2020
- Categories: Rails 6.1, Rails

`rails new my_app` creates a new Rails application fully loaded with all the
features.

If we want to omit some of the features then we needed to skip them like this.

```bash
# before Rails 6.1

$ rails new tiny_app
    --skip-action-cable
    --skip-action-mailer
    --skip-action-mailbox
    --skip-action-text
    --skip-active-storage
    --skip-bootsnap
    --skip-javascript
    --skip-spring
    --skip-system-test
    --skip-webpack-install
    --skip-turbolinks

```

Before Rails 6.1 it was not possible to skip things like `active_job` and
`jbuilder`.

## Rails 6.1

Rails 6.1 added a new option `--minimal`.

```bash

$ rails new tiny_app --minimal

```

All the following are excluded from this minimal Rails application.

- action_cable
- action_mailbox
- action_mailer
- action_text
- active_job
- active_storage
- bootsnap
- jbuilder
- spring
- system_tests
- turbolinks
- webpack

We can bundle webpack in this minimal app like this.

```bash

$ rails new tiny_app --minimal webpack=react

```

Database option can also be passed.

```bash

$ rails new tiny_app --minimal --database postgresql webpack=react

```

Check out the [pull request](https://github.com/rails/rails/pull/39282) for more
details on this.

## Links

- [Human page](https://www.bigbinary.com/blog/rails-6-1-adds-minimal-option-support)
