Add #create_or_find_by to lean on unique constraints
#31989

dhh wants to merge create_or_find_by into master

We do not currently have an analysis of these two commits