diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-10 12:07:47 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-10 12:07:47 +0000 |
commit | 96b0c1245c93585a8b0fe23e22306d32ff4e4905 (patch) | |
tree | d2904751e1a2529e8239381ce747339cdbf5116c /lib/gitlab/database.rb | |
parent | 0ba3a054d2190094ffda1ebe3aa53ffc5b92247d (diff) | |
download | gitlab-ce-96b0c1245c93585a8b0fe23e22306d32ff4e4905.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/database.rb')
-rw-r--r-- | lib/gitlab/database.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/database.rb b/lib/gitlab/database.rb index ceab9322857..82ec740ade1 100644 --- a/lib/gitlab/database.rb +++ b/lib/gitlab/database.rb @@ -241,6 +241,14 @@ module Gitlab row['version'] end + def self.exists? + connection + + true + rescue + false + end + private_class_method :database_version def self.add_post_migrate_path_to_rails(force: false) |