editing migration to solve postgres issues