Fix missing foreign key attribute with BelongsTo.