Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a89d95a8
Commit
a89d95a8
authored
Apr 06, 2018
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added parameter on sha_attribute to allow specifiying if the database exists
parent
31ba12b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/models/concerns/sha_attribute.rb
app/models/concerns/sha_attribute.rb
+2
-2
ee/app/models/geo/project_registry.rb
ee/app/models/geo/project_registry.rb
+2
-2
No files found.
app/models/concerns/sha_attribute.rb
View file @
a89d95a8
...
...
@@ -2,9 +2,9 @@ module ShaAttribute
extend
ActiveSupport
::
Concern
module
ClassMethods
def
sha_attribute
(
name
)
def
sha_attribute
(
name
,
database_available
=
true
)
return
if
ENV
[
'STATIC_VERIFICATION'
]
return
unless
table_exists?
return
unless
database_available
&&
table_exists?
column
=
columns
.
find
{
|
c
|
c
.
name
==
name
.
to_s
}
...
...
ee/app/models/geo/project_registry.rb
View file @
a89d95a8
...
...
@@ -10,8 +10,8 @@ class Geo::ProjectRegistry < Geo::BaseRegistry
ignore_column
:repository_verification_checksum
ignore_column
:wiki_verification_checksum
sha_attribute
:repository_verification_checksum_sha
sha_attribute
:wiki_verification_checksum_sha
sha_attribute
:repository_verification_checksum_sha
,
::
Gitlab
::
Geo
.
geo_database_configured?
sha_attribute
:wiki_verification_checksum_sha
,
::
Gitlab
::
Geo
.
geo_database_configured?
belongs_to
:project
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment