diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-12-26 14:36:33 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-12-26 17:18:10 +0800 |
commit | f4bd9c0b5e1eafe6de855d73bfb606909229f382 (patch) | |
tree | be9350fc52ab518676787906edff1adca0fb166b | |
parent | 8139895b4362817cf947431fab9c95ce223b87ae (diff) | |
download | gitlab-ce-f4bd9c0b5e1eafe6de855d73bfb606909229f382.tar.gz |
Skip sha_attribute if we're checking statically
-rw-r--r-- | app/models/concerns/sha_attribute.rb | 1 |
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 } |