diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-31 03:09:26 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-03-31 03:09:26 +0000 |
commit | 69d62eae981e12419891a050f5d6753941c9e42f (patch) | |
tree | f6137b0fd312c7a9234a27b3ba0470884811a92b /doc/development/sql.md | |
parent | 22ed58450d4fd51446f0bad9c754ba5022550adf (diff) | |
download | gitlab-ce-69d62eae981e12419891a050f5d6753941c9e42f.tar.gz |
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 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.* |