mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #21005 from jaredbeck/patch-1
Docs: Update options for add_reference
This commit is contained in:
commit
e202d59816
1 changed files with 3 additions and 1 deletions
|
@ -702,9 +702,11 @@ module ActiveRecord
|
|||
# [<tt>:index</tt>]
|
||||
# Add an appropriate index. Defaults to false.
|
||||
# [<tt>:foreign_key</tt>]
|
||||
# Add an appropriate foreign key. Defaults to false.
|
||||
# Add an appropriate foreign key constraint. Defaults to false.
|
||||
# [<tt>:polymorphic</tt>]
|
||||
# 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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue