Medicaid

I was out of work and on Medicaid, now I’m back at work and I’m not gonna qualify for Medicaid anymore but can’t get insurance at my job till ive been there for 6 months. do they end your insurance immediately or is there a time frame?