FactoryBot.define do factory :organization do sequence(:name) { |n| "TestOrganization#{n}" } created_by_id { 1 } updated_by_id { 1 } end end