diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-08 12:13:55 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-08 12:13:55 +0000 |
commit | 571b02efc9442e73538c3438eb593a83d7807779 (patch) | |
tree | 96c4ecbdaa066fac502111a3192cc396d6f4a79a /doc/development/database | |
parent | efe3186770a4218333e1a720f1e4d3794892673e (diff) | |
download | gitlab-ce-571b02efc9442e73538c3438eb593a83d7807779.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/database')
-rw-r--r-- | doc/development/database/efficient_in_operator_queries.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/development/database/efficient_in_operator_queries.md b/doc/development/database/efficient_in_operator_queries.md index 78b310ae708..a770dfe6531 100644 --- a/doc/development/database/efficient_in_operator_queries.md +++ b/doc/development/database/efficient_in_operator_queries.md @@ -433,7 +433,7 @@ construct the following table: For the `issue_types` query we can construct a value list without querying a table: ```ruby -value_list = Arel::Nodes::ValuesList.new([[Issue.issue_types[:incident]],[Issue.issue_types[:test_case]]]) +value_list = Arel::Nodes::ValuesList.new([[WorkItems::Type.base_types[:incident]],[WorkItems::Type.base_types[:test_case]]]) issue_type_values = Arel::Nodes::Grouping.new(value_list).as('issue_type_values (value)').to_sql array_scope = Group |