Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-03-31 06:09:26 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-31 06:09:26 +0300
commit69d62eae981e12419891a050f5d6753941c9e42f (patch)
treef6137b0fd312c7a9234a27b3ba0470884811a92b /doc/development/sql.md
parent22ed58450d4fd51446f0bad9c754ba5022550adf (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/sql.md')
-rw-r--r--doc/development/sql.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/development/sql.md b/doc/development/sql.md
index e2208caf35a..c1f4ad39650 100644
--- a/doc/development/sql.md
+++ b/doc/development/sql.md
@@ -376,7 +376,7 @@ Explicit column list definition:
```ruby
# Good, the SELECT columns are consistent
-columns = User.cached_column_names # The helper returns fully qualified (table.column) column names (Arel)
+columns = User.cached_column_list # The helper returns fully qualified (table.column) column names (Arel)
scope1 = User.select(*columns).where(id: [1, 2, 3]) # selects the columns explicitly
scope2 = User.select(*columns).where(id: [10, 11, 12]) # uses SELECT users.*