automatically add parent_id for has_many and has_one relations
accepts_nested_attributes_for relations automatically