1
0
Fork 0
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:
Jared Beck 2015-07-23 15:15:58 -04:00
parent cdc32defcf
commit 416e8049bc

View file

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