提交 33fac991 编写于 作者: M Mehmet Emin İNAÇ

Minor addition to getting started guide for foreign_key description of...

Minor addition to getting started guide for foreign_key description of references migration [ci skip]
上级 5aee168e
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册