Always validate `inbox_url` presence on Relay (#32364)

pull/31481/merge
Matt Jankowski 2024-12-02 02:38:06 -05:00 committed by GitHub
parent 3cd308523a
commit a17e7d10fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 }