提交 28778de2 编写于 作者: R Rafael Mendonça França

Merge pull request #19095 from waseem/rails_runner_ruby_file

Section explaining how rails runner accepts code in a ruby file.
......@@ -338,6 +338,12 @@ You can specify the environment in which the `runner` command should operate usi
$ bin/rails runner -e staging "Model.long_running_method"
```
You can even execute ruby code written in a file with runner.
```bash
$ bin/rails runner lib/code_to_be_run.rb
```
### `rails destroy`
Think of `destroy` as the opposite of `generate`. It'll figure out what generate did, and undo it.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册