提交 40ffcd88 编写于 作者: A Abdelkader Boudih

Merge pull request #20526 from y-yagi/fix_doc_about_foreign_key_name

fix doc about foreign key name [ci skip]
......@@ -475,7 +475,8 @@ column names can not be derived from the table names, you can use the
`:column` and `:primary_key` options.
Rails will generate a name for every foreign key starting with
`fk_rails_` followed by 10 random characters.
`fk_rails_` followed by 10 character which is deterministically
generated from the `from_table` and `column`.
There is a `:name` option to specify a different name if needed.
NOTE: Active Record only supports single column foreign keys. `execute` and
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册