public create_association ( activerecord\Model $model, array $attributes = [], $guard_attributes = true ) : activerecord\Model | ||
$model | activerecord\Model | The model which holds this association |
$attributes | array | Hash containing attributes to initialize the model with |
return | activerecord\Model |