diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-07-16 15:14:19 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-07-16 15:14:19 +0530 |
commit | c58dcaf0ce53568c5760d7970155f93cec8ba84d (patch) | |
tree | a36956ac56fe087ba1d4f0f8b9a874c0a802b91b /activerecord | |
parent | bf06cdf7730f8d71969a251eedbb904152dd78c3 (diff) | |
download | rails-c58dcaf0ce53568c5760d7970155f93cec8ba84d.tar.gz rails-c58dcaf0ce53568c5760d7970155f93cec8ba84d.tar.bz2 rails-c58dcaf0ce53568c5760d7970155f93cec8ba84d.zip |
Fix documentation of `index` option for the `add_reference` method [ci skip]
- Followup of https://github.com/rails/rails/pull/23179.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 |
1 files changed, 1 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 396cb0b07a..cffd7e8e81 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -790,7 +790,7 @@ module ActiveRecord # [<tt>:type</tt>] # The reference column type. Defaults to +:integer+. # [<tt>:index</tt>] - # Add an appropriate index. Defaults to false. + # Add an appropriate index. Defaults to true. # See #add_index for usage of this option. # [<tt>:foreign_key</tt>] # Add an appropriate foreign key constraint. Defaults to false. |