Fix join table migrations