aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJared Beck <jared@jaredbeck.com>2015-07-23 15:15:58 -0400
committerJared Beck <jared@jaredbeck.com>2015-07-23 15:15:58 -0400
commit416e8049bc913cdcf1b84a90eeb5437ce5ac30e4 (patch)
treed10ba973111b65394202c4affa720fa538144300 /activerecord
parentcdc32defcfc2ce5312c4b02e09f6cef2172843c6 (diff)
downloadrails-416e8049bc913cdcf1b84a90eeb5437ce5ac30e4.tar.gz
rails-416e8049bc913cdcf1b84a90eeb5437ce5ac30e4.tar.bz2
rails-416e8049bc913cdcf1b84a90eeb5437ce5ac30e4.zip
Docs: Update options for add_reference
[ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb4
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
#