Support has_one to be compatible with 0.8.x