aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorArthur Nogueira Neves <github@arthurnn.com>2015-10-04 20:44:02 -0400
committerArthur Nogueira Neves <github@arthurnn.com>2015-10-04 20:44:02 -0400
commite202d59816fe3304dbd2774cc8d5bd16e3488be3 (patch)
tree48df04cd60938800980584616c66fb34673cb178 /activerecord/lib
parentd2ef471b849b28c6962e4ed784fbec42aae9f9ec (diff)
parent416e8049bc913cdcf1b84a90eeb5437ce5ac30e4 (diff)
downloadrails-e202d59816fe3304dbd2774cc8d5bd16e3488be3.tar.gz
rails-e202d59816fe3304dbd2774cc8d5bd16e3488be3.tar.bz2
rails-e202d59816fe3304dbd2774cc8d5bd16e3488be3.zip
Merge pull request #21005 from jaredbeck/patch-1
Docs: Update options for add_reference
Diffstat (limited to 'activerecord/lib')
-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 7e53f8958a..ccff853987 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -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
#