With dynamic attributes

Sequences can be used in dynamic attributes:

FactoryBot.define do
  sequence :email do |n|
    "person#{n}@example.com"
  end
end

factory :invite do
  invitee { generate(:email) }
end