FactoryBot.define do factory :task_attachment, class: Ecom::Core::TaskAttachment do title { FFaker::Name.name } description { FFaker::Name.name } association :task end end