mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add guides for required
model generator option.
Related to this PR #16062 [ci skip]
This commit is contained in:
parent
44a6ed2fe5
commit
d2c1d050fc
1 changed files with 2 additions and 0 deletions
|
@ -452,6 +452,8 @@ number of digits after the decimal point.
|
|||
are using a dynamic value (such as a date), the default will only be calculated
|
||||
the first time (i.e. on the date the migration is applied).
|
||||
* `index` Adds an index for the column.
|
||||
* `required` Adds `required: true` for `belongs_to` associations and
|
||||
`null: false` to the column in the migration.
|
||||
|
||||
Some adapters may support additional options; see the adapter specific API docs
|
||||
for further information.
|
||||
|
|
Loading…
Reference in a new issue