aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-04-17 02:06:25 +0530
committerVipul A M <vipulnsward@gmail.com>2016-04-17 02:06:25 +0530
commitbca187219843fd49aba6415880d07fe8cb19f5f5 (patch)
treedc8fec49d37e4103369a4fe3afd03d88932c5cb9 /guides
parent39e087cbf5628ecc351fc86a3a1e320be193bf29 (diff)
parentd9565811f075273fbc3318af173fe4a21e14ae58 (diff)
downloadrails-bca187219843fd49aba6415880d07fe8cb19f5f5.tar.gz
rails-bca187219843fd49aba6415880d07fe8cb19f5f5.tar.bz2
rails-bca187219843fd49aba6415880d07fe8cb19f5f5.zip
documentation for add_references index option [ci skip]
documentation for add_references index option [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_migrations.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md
index b89485b945..004a30d669 100644
--- a/guides/source/active_record_migrations.md
+++ b/guides/source/active_record_migrations.md
@@ -246,7 +246,8 @@ class AddUserRefToProducts < ActiveRecord::Migration[5.0]
end
```
-This migration will create a `user_id` column and appropriate index.
+This migration will create a `user_id` column and appropriate index.
+For more `add_reference` options, visit the [API documentation](http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#method-i-add_reference).
There is also a generator which will produce join tables if `JoinTable` is part of the name: