提交 afa449c9 编写于 作者: Z Zachary Scott

Merge pull request #15624 from aditya-kapoor/add-warnings-on-guides

[ci skip] Add Tip for change_column_null and change_column_default in guides
......@@ -434,6 +434,8 @@ change_column_default :products, :approved, false
This sets `:name` field on products to a `NOT NULL` column and the default
value of the `:approved` field to false.
TIP: Unlike `change_column` (and `change_column_default`), `change_column_null` is reversible.
### Column Modifiers
Column modifiers can be applied when creating or changing a column:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册