提交 85faea4b 编写于 作者: S Santiago Pastorino

Merge pull request #17381 from jonatack/patch-8

AR Migrations Guide#Foreign Keys: fix wrong table
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册