提交 7de57cfe 编写于 作者: Y Yasuo Honda

[skip ci] Rails 5.1+ supports bigint primary key

Follow up #35573
上级 5ab0c1a8
......@@ -199,7 +199,7 @@ def find_or_create_by!(attributes, &block)
# * It relies on exception handling to handle control flow, which may be marginally slower.
# * The primary key may auto-increment on each create, even if it fails. This can accelerate
# the problem of running out of integers, if the underlying table is still stuck on a primary
# key of type int (note: All Rails apps since 5.0+ have defaulted to bigint, which is not liable
# key of type int (note: All Rails apps since 5.1+ have defaulted to bigint, which is not liable
# to this problem).
#
# This method will return a record if all given attributes are covered by unique constraints
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册