mirror of https://github.com/mastodon/mastodon
remove duplicate validation
This commit is contained in:
parent
d13c20fabe
commit
c24f31ca50
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue