Do not generate md5 if class is ActiveRecord::Base