mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-08 19:35:11 +01:00
fix failing spec
This commit is contained in:
parent
b3308f03f8
commit
c22027be24
@ -26,7 +26,7 @@ class IpBlock < ApplicationRecord
|
||||
no_access: 9999,
|
||||
}, prefix: true, validate: true
|
||||
|
||||
validates :ip, presence: true
|
||||
validates :ip, :severity, presence: true
|
||||
validates :ip, uniqueness: true
|
||||
|
||||
after_commit :reset_cache
|
||||
|
Loading…
Reference in New Issue
Block a user