提交 e385b853 编写于 作者: R Richard Schneeman

Merge pull request #15571 from kalmanh/patch-1

Update migrations.md
......@@ -303,6 +303,7 @@ braces. You can use the following modifiers:
* `scale` Defines the scale for the `decimal` fields, representing the number of digits after the decimal point.
* `polymorphic` Adds a `type` column for `belongs_to` associations.
* `null` Allows or disallows `NULL` values in the column.
* `default` Allows to set a default value on the column. NOTE: If using a dynamic value (such as date), the default will only be calculated the first time (e.g. on the date the migration is applied.)
For instance, running:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册