aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2014-10-24 15:09:39 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2014-10-24 15:09:39 -0200
commit85faea4b8320e728854838c6da97c9435de8869e (patch)
tree138a93dd7d68b946307e392e96dec37f9d780fe2
parent016af48b86f2096637f39c3194402d9891f35dcd (diff)
parent2a1afe6b372b9c8c59b875ebaa0e4f29e407afc2 (diff)
downloadrails-85faea4b8320e728854838c6da97c9435de8869e.tar.gz
rails-85faea4b8320e728854838c6da97c9435de8869e.tar.bz2
rails-85faea4b8320e728854838c6da97c9435de8869e.zip
Merge pull request #17381 from jonatack/patch-8
AR Migrations Guide#Foreign Keys: fix wrong table
-rw-r--r--guides/source/active_record_migrations.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md
index 229c6ee458..c8a31fe7b8 100644
--- a/guides/source/active_record_migrations.md
+++ b/guides/source/active_record_migrations.md
@@ -466,7 +466,7 @@ add_foreign_key :articles, :authors
```
This adds a new foreign key to the `author_id` column of the `articles`
-table. The key references the `id` column of the `articles` table. If the
+table. The key references the `id` column of the `authors` table. If the
column names can not be derived from the table names, you can use the
`:column` and `:primary_key` options.