Implementation of has_one associations