未验证 提交 f4f242b8 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #38774 from stevenjackson/patch-1

Update doc for #pluck to use non-deprecated syntax

[ci skip]
......@@ -174,7 +174,7 @@ def calculate(operation, column_name)
# # SELECT people.id FROM people WHERE people.age = 21 LIMIT 5
# # => [2, 3]
#
# Person.pluck('DATEDIFF(updated_at, created_at)')
# Person.pluck(Arel.sql('DATEDIFF(updated_at, created_at)'))
# # SELECT DATEDIFF(updated_at, created_at) FROM people
# # => ['0', '27761', '173']
#
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册