1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #12314 from JuanitoFatas/migrations

[ci skip] Add `null` type modifier in migrations.md.
This commit is contained in:
Yves Senn 2013-09-23 01:41:24 -07:00
commit d58b720f59

View file

@ -301,6 +301,7 @@ braces. You can use the following modifiers:
* `precision` Defines the precision for the `decimal` fields
* `scale` Defines the scale for the `decimal` fields
* `polymorphic` Adds a `type` column for `belongs_to` associations
* `null` Allows or disallows `NULL` values in the column.
For instance, running