mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Docs: Update options for add_reference
[ci skip]
This commit is contained in:
parent
cdc32defcf
commit
416e8049bc
1 changed files with 3 additions and 1 deletions
|
@ -665,9 +665,11 @@ module ActiveRecord
|
||||||
# [<tt>:index</tt>]
|
# [<tt>:index</tt>]
|
||||||
# Add an appropriate index. Defaults to false.
|
# Add an appropriate index. Defaults to false.
|
||||||
# [<tt>:foreign_key</tt>]
|
# [<tt>:foreign_key</tt>]
|
||||||
# Add an appropriate foreign key. Defaults to false.
|
# Add an appropriate foreign key constraint. Defaults to false.
|
||||||
# [<tt>:polymorphic</tt>]
|
# [<tt>:polymorphic</tt>]
|
||||||
# Whether an additional +_type+ column should be added. Defaults to false.
|
# Whether an additional +_type+ column should be added. Defaults to false.
|
||||||
|
# [<tt>:null</tt>]
|
||||||
|
# Whether the column allows nulls. Defaults to true.
|
||||||
#
|
#
|
||||||
# ====== Create a user_id integer column
|
# ====== Create a user_id integer column
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue