FactoryBot.define do factory :crew_overtime, class: 'Ecom::Core::CrewOvertime' do hours { 2 } converted_hours { 2 } remark { FFaker::Name.name } association :overtime_type association :overtime_sheet_entry revised { false } revision_to { nil } association :created_by, factory: :user end end