Comment on Put Callback Logic Into Callback Objects [Rails]Comments−soveran14yYou may run into race conditions when two processes end up saving an object with the same hash_id. The check and the object creation should both happen inside a transaction.−nagnatronOP14yGood point. Thanks.
Comments
You may run into race conditions when two processes end up saving an object with the same hash_id. The check and the object creation should both happen inside a transaction.
Good point. Thanks.