Changed the guides to use distinct instead of uniq for associations (see
commit a1bb6c8b which changes the naming). I've also provided an
example of how distinctness when inserting into an association can be
achieved.
Merge pull request #10053 from wangjohn/change_docs_for_associations_distinctness

Changed the guides for associations, warning about race conditions when checking for distinctness