Other state income

I live in Ohio and for part of the year my job was located within Ohio. It was later relocated to Kentucky. I am unsure if I need to file for both states or only Ohio.