Skip to content

Commit

Permalink
Document the --database/--db option for multiple database Rails appli…
Browse files Browse the repository at this point in the history
…cation [skip ci]
  • Loading branch information
abhaynikam committed Aug 11, 2020
1 parent 23a9e29 commit d747b53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions guides/source/command_line.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d747b53

Please sign in to comment.