1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

remove duplicate validation

This commit is contained in:
Daniel M Brasil 2024-02-23 09:10:33 -03:00
parent d13c20fabe
commit c24f31ca50
No known key found for this signature in database
GPG key ID: AE1A28A226D1E692

View file

@ -25,7 +25,7 @@ class IpBlock < ApplicationRecord
no_access: 9999,
}, prefix: true, validate: true
validates :ip, :severity, presence: true
validates :ip, presence: true
validates :ip, uniqueness: true
after_commit :reset_cache