diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-25 09:10:45 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-25 09:10:45 +0000 |
commit | bcfab67c0f33aeda96041f341f92cf0ff1e062d3 (patch) | |
tree | 2d3a9c5ccd7693112ed48d410a9a940f6a1fa8de /app/models | |
parent | c1ccb69fc9b1f07a00d3310f5fbd2e4622db9482 (diff) | |
download | gitlab-ce-bcfab67c0f33aeda96041f341f92cf0ff1e062d3.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/clusters/applications/runner.rb | 2 | ||||
-rw-r--r-- | app/models/commit_status.rb | 1 | ||||
-rw-r--r-- | app/models/todo.rb | 1 |
3 files changed, 1 insertions, 3 deletions
diff --git a/app/models/clusters/applications/runner.rb b/app/models/clusters/applications/runner.rb index f87eccecf9f..8a49d476ba7 100644 --- a/app/models/clusters/applications/runner.rb +++ b/app/models/clusters/applications/runner.rb @@ -3,7 +3,7 @@ module Clusters module Applications class Runner < ApplicationRecord - VERSION = '0.25.0' + VERSION = '0.26.0' self.table_name = 'clusters_applications_runners' diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb index ea2f425c5f6..781b3456c87 100644 --- a/app/models/commit_status.rb +++ b/app/models/commit_status.rb @@ -52,7 +52,6 @@ class CommitStatus < ApplicationRecord scope :before_stage, -> (index) { where('stage_idx < ?', index) } scope :for_stage, -> (index) { where(stage_idx: index) } scope :after_stage, -> (index) { where('stage_idx > ?', index) } - scope :for_ids, -> (ids) { where(id: ids) } scope :for_ref, -> (ref) { where(ref: ref) } scope :by_name, -> (name) { where(name: name) } scope :in_pipelines, ->(pipelines) { where(pipeline: pipelines) } diff --git a/app/models/todo.rb b/app/models/todo.rb index 12dc9ce0fe6..176d5e56fc0 100644 --- a/app/models/todo.rb +++ b/app/models/todo.rb @@ -55,7 +55,6 @@ class Todo < ApplicationRecord validates :project, presence: true, unless: :group_id validates :group, presence: true, unless: :project_id - scope :for_ids, -> (ids) { where(id: ids) } scope :pending, -> { with_state(:pending) } scope :done, -> { with_state(:done) } scope :for_action, -> (action) { where(action: action) } |