diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-18 15:13:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-18 15:13:41 +0300 |
commit | 1e88fd9da8572e256a61f0307a5099653735730b (patch) | |
tree | d3f2bf7ed543bfb38da0b9b1fe7508d02d3fd2e9 /doc/development/sql.md | |
parent | f047727bf270fc9a64e3420a0c23760962b38f14 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/sql.md')
-rw-r--r-- | doc/development/sql.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/development/sql.md b/doc/development/sql.md index 3483305c113..129280598fe 100644 --- a/doc/development/sql.md +++ b/doc/development/sql.md @@ -241,7 +241,7 @@ MergeRequest.where(source_project_id: Project.all.select(:id)) ``` The _only_ time you should use `pluck` is when you actually need to operate on -the values in Ruby itself (e.g. write them to a file). In almost all other cases +the values in Ruby itself (for example, writing them to a file). In almost all other cases you should ask yourself "Can I not just use a sub-query?". In line with our `CodeReuse/ActiveRecord` cop, you should only use forms like |