未验证 提交 b32a614d 编写于 作者: J Jonathan Hefner 提交者: GitHub

Merge pull request #40024 from abhaynikam/document-multidb-dbconsole-command

Document dbconsole command for multiple database [ci skip]
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册