diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-01 12:09:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-01 12:09:36 +0300 |
commit | 8ef03669283030d0502a871113f8db013e6ac46c (patch) | |
tree | beea5b086924cdea8846f4660613368019cf0115 /app/models/operations | |
parent | b7ff336e241d1ece19498218f670041b16f62b1c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/operations')
-rw-r--r-- | app/models/operations/feature_flag.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/operations/feature_flag.rb b/app/models/operations/feature_flag.rb index 537543a7ff0..8b052f80395 100644 --- a/app/models/operations/feature_flag.rb +++ b/app/models/operations/feature_flag.rb @@ -49,6 +49,8 @@ module Operations scope :enabled, -> { where(active: true) } scope :disabled, -> { where(active: false) } + scope :new_version_only, -> { where(version: :new_version_flag)} + enum version: { legacy_flag: 1, new_version_flag: 2 |