has_one and has_many attributes