提交 f9ed46bf 编写于 作者: C Carlos Antonio da Silva

Merge pull request #19170 from...

Merge pull request #19170 from JuanitoFatas/doc/active_record/connection_adapters/abstract/schema_definitions.rb

Clarify that t.references and t.belongs_to are interchangeable. [ci skip]
......@@ -401,7 +401,7 @@ def timestamps(*args)
# Adds a reference. Optionally adds a +type+ column, if the
# +:polymorphic+ option is provided. +references+ and +belongs_to+
# are acceptable. The reference column will be an +integer+ by default,
# are interchangeable. The reference column will be an +integer+ by default,
# the +:type+ option can be used to specify a different type. A foreign
# key will be created if the +:foreign_key+ option is passed.
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册