diff --git a/app/models/relay.rb b/app/models/relay.rb index f652b4864b..beae1148a5 100644 --- a/app/models/relay.rb +++ b/app/models/relay.rb @@ -13,7 +13,8 @@ # class Relay < ApplicationRecord - validates :inbox_url, presence: true, uniqueness: true, url: true, if: :will_save_change_to_inbox_url? + validates :inbox_url, presence: true + validates :inbox_url, uniqueness: true, url: true, if: :will_save_change_to_inbox_url? enum :state, { idle: 0, pending: 1, accepted: 2, rejected: 3 }