aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-06-29 22:58:45 +0300
committerMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-06-29 22:58:45 +0300
commit33fac9917d52f277082bd33652d58a33f5067cd0 (patch)
tree283062ad789299f0d6422e3c79ef0c946bfec7c0 /guides
parent5aee168e7351bf63e2c9f5a1ad0d43dd7fbe0aba (diff)
downloadrails-33fac9917d52f277082bd33652d58a33f5067cd0.tar.gz
rails-33fac9917d52f277082bd33652d58a33f5067cd0.tar.bz2
rails-33fac9917d52f277082bd33652d58a33f5067cd0.zip
Minor addition to getting started guide for foreign_key description of references migration [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/getting_started.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index dfdc11de7a..b5054549e2 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -1555,8 +1555,8 @@ end
```
The `t.references` line creates an integer column called `article_id`, an index
-for it, and a foreign key constraint that points to the `articles` table. Go
-ahead and run the migration:
+for it, and a foreign key constraint that points to the `id` column of the `articles`
+table. Go ahead and run the migration:
```bash
$ bin/rake db:migrate