Check association for foreign key specification, fixes #1