Add setting of FK for throgh associations while building