diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md index 229c6ee458dbebd5f8a31103565cc145dbc63db2..c8a31fe7b8f387fcd57da8153dc77649a7d595f9 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.