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 }