Document the --database/--db option for multiple database Rails application [skip ci]

This commit is contained in:
Abhay Nikam 2020-08-11 21:37:37 +05:30
parent 23a9e29d9b
commit d747b53172

@ -395,6 +395,12 @@ With the `helper` method it is possible to access Rails and your application's h
INFO: You can also use the alias "db" to invoke the dbconsole: `bin/rails db`.
If you are using multiple databases, `bin/rails dbconsole` will connect to the primary database by default. You can specify which database to connect to using `--database` or `--db`:
```bash
$ bin/rails dbconsole --database=animals
```
### `bin/rails runner`
`runner` runs Ruby code in the context of Rails non-interactively. For instance: