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:
commit
d58b720f59
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue