From a17e7d10fcea0d048061d837840f3bcbd21a10f3 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Mon, 2 Dec 2024 02:38:06 -0500 Subject: [PATCH] Always validate `inbox_url` presence on Relay (#32364) --- app/models/relay.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/relay.rb b/app/models/relay.rb index 1a8fdebc7f..813a861c68 100644 --- a/app/models/relay.rb +++ b/app/models/relay.rb @@ -13,7 +13,7 @@ # 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 }