提交 92404265 编写于 作者: S Sean Griffin

Merge pull request #20735 from vngrs/minor_addition_to_getting_started

Minor addition to getting started guide for foreign_key description
......@@ -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.
先完成此消息的编辑!
想要评论请 注册