def sequence(name, *args, &block)
      sequence = Sequence.new(name, *args, &block)
      FactoryBot::Internal.register_inline_sequence(sequence)
      add_attribute(name) { increment_sequence(sequence) }
    end
def sequence(name, *args, &block)
      sequence = Sequence.new(name, *args, &block)
      FactoryBot::Internal.register_inline_sequence(sequence)
      add_attribute(name) { increment_sequence(sequence) }
    end
Adds an attribute that will have unique values generated by a sequence with
 a specified format.

 The result of:
   factory :user do
     sequence(:email) { |n| "person#{n}@example.com" }
   end

 Is equal to:
   sequence(:email) { |n| "person#{n}@example.com" }

   factory :user do
     email { FactoryBot.generate(:email) }
   end

 Except that no globally available sequence will be defined.