updated foreign_key_mixin