1
0
Fork 0
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:
Arthur Nogueira Neves 2015-10-04 20:44:02 -04:00
commit e202d59816

View file

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