1 2 3 4 5 6 7
FactoryBot.define do factory :group_custom_attribute do group sequence(:key) { |n| "key#{n}" } sequence(:value) { |n| "value#{n}" } end end