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:
parent
d13c20fabe
commit
c24f31ca50
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue