Fix methods visibility in gitlab database module
This commit is contained in:
parent
239d8ab30c
commit
e15b63b34e
1 changed files with 4 additions and 2 deletions
|
@ -55,12 +55,12 @@ module Gitlab
|
|||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def self.connection
|
||||
ActiveRecord::Base.connection
|
||||
end
|
||||
|
||||
private_class_method :connection
|
||||
|
||||
def self.database_version
|
||||
row = connection.execute("SELECT VERSION()").first
|
||||
|
||||
|
@ -70,5 +70,7 @@ module Gitlab
|
|||
row.first
|
||||
end
|
||||
end
|
||||
|
||||
private_class_method :database_version
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue