From 2a1afe6b372b9c8c59b875ebaa0e4f29e407afc2 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Fri, 24 Oct 2014 16:59:16 +0200 Subject: AR Migrations Guide#Foreign Keys: fix wrong table [skip ci] --- guides/source/active_record_migrations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') 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. -- cgit v1.2.3