Hi,
The hypothetical create_or_find method could be a nice alternative to
transaction { find_or_create ... }.
It is implemented in AR 6 and the concept is well explained in docs:
https://apidock.com/rails/v6.0.0/ActiveRecord/Relation/create_or_find_by
What do you think about that?
Many thanks, Illia
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/c03f89d6-a16d-4589-a01d-3d183d95fde4%40googlegroups.com.