SAN DIEGO — When Kelly Martinez began her career with the San Diego County Sheriff’s Department as a deputy in 1985, female deputies and their male counterparts were not always viewed as equally capable of the job. Martinez and other female deputies got the same assignment out of the academy: the women’s Las Colinas Detention Facility in Santee. A year later, Martinez was among the first female deputies assigned to a men’s jail. She would work as a deputy for 22 years before rising through the ranks to assistant chief. Now she is poised to make history again. On Friday, Feb. 26, the 36-year veteran of the force will become the first woman to serve as the department’s undersheriff, the second in command.