There are two attributes in the model "user_id" and "invite_id"
let's say equal to 1 and 2
It is necessary to check whether such a pair is 1 and 2, as well as whether there is a pair of 2 and 1
How to implement it? Normal unique validator will not help you to write your own?