diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-06-19 18:24:14 +0100 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-06-28 17:51:05 +0100 |
commit | 1fbb7f977777de7c8808429693359c7a98ffdfcc (patch) | |
tree | bb872e346a9fb3b6c6d9001196ee931dba632387 /app/models/namespace.rb | |
parent | 34f57b462bc14ad194cf890a4585d403bdbde55c (diff) | |
download | gitlab-ce-1fbb7f977777de7c8808429693359c7a98ffdfcc.tar.gz |
Removes redundant pending delete checks30708-stop-using-deleted-at-to-filter-namespaces
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r-- | app/models/namespace.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index 583d4fb5244..efbed5a2ef5 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -47,6 +47,8 @@ class Namespace < ActiveRecord::Base before_destroy(prepend: true) { prepare_for_destroy } after_destroy :rm_dir + default_scope { with_deleted } + scope :for_user, -> { where('type IS NULL') } scope :with_statistics, -> do |