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:
authorLin Jen-Shin <godfat@godfat.org>2017-12-26 09:36:33 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-12-26 12:18:10 +0300
commitf4bd9c0b5e1eafe6de855d73bfb606909229f382 (patch)
treebe9350fc52ab518676787906edff1adca0fb166b /app/models/concerns/sha_attribute.rb
parent8139895b4362817cf947431fab9c95ce223b87ae (diff)
Skip sha_attribute if we're checking statically
Diffstat (limited to 'app/models/concerns/sha_attribute.rb')
-rw-r--r--app/models/concerns/sha_attribute.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/concerns/sha_attribute.rb b/app/models/concerns/sha_attribute.rb
index 67ecf470f7e..703a72c355c 100644
--- a/app/models/concerns/sha_attribute.rb
+++ b/app/models/concerns/sha_attribute.rb
@@ -3,6 +3,7 @@ module ShaAttribute
module ClassMethods
def sha_attribute(name)
+ return if ENV['STATIC_VERIFICATION']
return unless table_exists?
column = columns.find { |c| c.name == name.to_s }