DEV Community

Discussion on: FactoryBot .find_or_create_by

Collapse
 
jooeycheng profile image
Joey Cheng

Nice, I assume it still works because the model will reload based on the assigned ID. This approach might be more performant than mine, because I attempt to update all attributes.