modified foreign key migration