1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
FactoryBot.define do factory :redirect_route do sequence(:path) { |n| "redirect#{n}" } source factory: :group permanent false trait :permanent do permanent true end trait :temporary do permanent false end end end