Fixed #23338 -- Added warning when unique=True on ForeignKey

This PR is similar to #3196 but with the tests and the updated documentation as requested.
I believe the message should be the same as the triggered warning, that is "Setting unique=True on a ForeignKey has the same effect as using a OneToOneField."