提交 febe40a1 编写于 作者: M mogetutu

Added quotes when defining the precision for the `decimal` fields

before:

```bash
$ rails generate migration AddDetailsToProducts price:decimal{5,2} supplier:references{polymorphic}
```

after:

```bash
$ rails generate migration AddDetailsToProducts 'price:decimal{5,2}' supplier:references{polymorphic}
```
上级 8a681d8a
...@@ -305,7 +305,7 @@ braces. You can use the following modifiers: ...@@ -305,7 +305,7 @@ braces. You can use the following modifiers:
For instance, running For instance, running
```bash ```bash
$ rails generate migration AddDetailsToProducts price:decimal{5,2} supplier:references{polymorphic} $ rails generate migration AddDetailsToProducts 'price:decimal{5,2}' supplier:references{polymorphic}
``` ```
will produce a migration that looks like this will produce a migration that looks like this
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册