+++++++++++++
+ USER +
+===========+
+ id +
+ domainID +
+ name +
+++++++++++++
I would like to tell my Model that the [i`]Name[/i] column needs to be unique combined with [i]domainID[/i] (so I can actually have the same name, as long as thedomainID` is different)
Is there an easy way of doing this? (i just can’t find it)
Or I have to create a custom validation rule for this?