1
0
Fork 0
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:
Carlos Souza 2014-12-09 15:29:28 -05:00
parent 44a6ed2fe5
commit d2c1d050fc

View file

@ -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.