mirror of
https://github.com/mastodon/mastodon
synced 2024-12-05 02:08:21 +09:00
Always validate inbox_url
presence on Relay (#32364)
This commit is contained in:
parent
3cd308523a
commit
a17e7d10fc
@ -13,7 +13,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
class Relay < ApplicationRecord
|
class Relay < ApplicationRecord
|
||||||
validates :inbox_url, presence: true, uniqueness: true, url: true, if: :will_save_change_to_inbox_url?
|
validates :inbox_url, presence: true, uniqueness: true, url: true # rubocop:disable Rails/UniqueValidationWithoutIndex
|
||||||
|
|
||||||
enum :state, { idle: 0, pending: 1, accepted: 2, rejected: 3 }
|
enum :state, { idle: 0, pending: 1, accepted: 2, rejected: 3 }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user