diff --git a/lib/validates_zipcode/validator.rb b/lib/validates_zipcode/validator.rb
index <HASH>..<HASH> 100644
--- a/lib/validates_zipcode/validator.rb
+++ b/lib/validates_zipcode/validator.rb
@@ -27,7 +27,7 @@ module ValidatesZipcode
       alpha2 = @country_code || record.send(@country_code_attribute)
 
       unless ValidatesZipcode::Zipcode.new(zipcode: value.to_s, country_alpha2: alpha2).valid?
-        record.errors.add(attribute, I18n.t('errors.messages.invalid_zipcode', value: value, default: 'Zipcode is invalid'))
+        record.errors.add(attribute, :invalid_zipcode, message: I18n.t('errors.messages.invalid_zipcode', value: value, default: 'Zipcode is invalid'))
       end
     end
   end
Add "validator type" to error (dgilperez/validates_zipcode#<I>)

One line fiddle, seems to work, all tests pass (ruby <I>).