diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-29 21:12:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-29 21:12:42 +0300 |
commit | fef5449973e2097fbedd92980d78dc4baf54afd6 (patch) | |
tree | fae2e4b1e9eb45e0e9b1da569721c5f8c1cea4ef /app/models/packages | |
parent | cee701c9641a4dfa508f9a1d913863a52ae67167 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/packages')
-rw-r--r-- | app/models/packages/composer/cache_file.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/packages/composer/cache_file.rb b/app/models/packages/composer/cache_file.rb index 15a6dd59925..5222101d171 100644 --- a/app/models/packages/composer/cache_file.rb +++ b/app/models/packages/composer/cache_file.rb @@ -16,8 +16,6 @@ module Packages scope :with_namespace, ->(namespace) { where(namespace: namespace) } scope :with_sha, ->(sha) { where(file_sha256: sha) } - scope :expired, -> { where("delete_at <= ?", Time.current) } - scope :without_namespace, -> { where(namespace_id: nil) } end end end |