Wednesday, July 15, 2026 2:55:40 AM
> user_notification_route.rb
# frozen_string_literal: true

FactoryBot.define do
  factory :user_notification_route, class: "ESM::UserNotificationRoute" do
    association :destination_community, factory: :community
    # association :source_server, factory: :server # The server requires a community
    association :user

    public_id { SecureRandom.uuid }
    source_server_id { nil }
    notification_type { "base-raid" }
    enabled { true }
    user_accepted { true }
    community_accepted { true }

    trait :not_accepted do
      user_accepted { false }
      community_accepted { false }
    end
  end
end
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 43aa0d7