Skip sha_attribute if we're checking statically

This commit is contained in:
Lin Jen-Shin 2017-12-26 14:36:33 +08:00
parent 8139895b43
commit f4bd9c0b5e
1 changed files with 1 additions and 0 deletions

View File

@ -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 }