Added migation for credit table
Implemented passing in of foreign key meta data