[OE-3107] added foreign key setup to migration