diff options
author | Jared Beck <jared@jaredbeck.com> | 2015-07-23 15:15:58 -0400 |
---|---|---|
committer | Jared Beck <jared@jaredbeck.com> | 2015-07-23 15:15:58 -0400 |
commit | 416e8049bc913cdcf1b84a90eeb5437ce5ac30e4 (patch) | |
tree | d10ba973111b65394202c4affa720fa538144300 | |
parent | cdc32defcfc2ce5312c4b02e09f6cef2172843c6 (diff) | |
download | rails-416e8049bc913cdcf1b84a90eeb5437ce5ac30e4.tar.gz rails-416e8049bc913cdcf1b84a90eeb5437ce5ac30e4.tar.bz2 rails-416e8049bc913cdcf1b84a90eeb5437ce5ac30e4.zip |
Docs: Update options for add_reference
[ci skip]
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index a30945d0ee..09ac083069 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -665,9 +665,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 # |