1 post about
troubleshooting

Prevent duplicated database record creation with find_or_create_by

When we developed the gaming App for our client Colors, we encountered a common data consistency problem: How to prevent duplicated database record creation. Of course everyone instantly can think of "use #find_or_create_by", but it is actually little bit more complicated than that. #find_or_create_by We are using Ruby on Rails to implement...


Read More