Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-10 15:07:47 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-10 15:07:47 +0300
commit96b0c1245c93585a8b0fe23e22306d32ff4e4905 (patch)
treed2904751e1a2529e8239381ce747339cdbf5116c /app/models/concerns/sha256_attribute.rb
parent0ba3a054d2190094ffda1ebe3aa53ffc5b92247d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/concerns/sha256_attribute.rb')
-rw-r--r--app/models/concerns/sha256_attribute.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/concerns/sha256_attribute.rb b/app/models/concerns/sha256_attribute.rb
index 1bd1ad177a2..9dfe1b77829 100644
--- a/app/models/concerns/sha256_attribute.rb
+++ b/app/models/concerns/sha256_attribute.rb
@@ -39,11 +39,7 @@ module Sha256Attribute
end
def database_exists?
- ApplicationRecord.connection
-
- true
- rescue
- false
+ Gitlab::Database.exists?
end
end
end