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

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 }