rubyonrails 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