I have a column, "store_id" in my users table that could be blank, but
otherwise it must be numeric. If someone does decide to enter a
number, I want to ensure that number is unique relative to other
store_id's with non-null values. How, if possible, would I construct
such a validation rule in my user model?
I have a column, "store_id" in my users table that could be blank, but
otherwise it must be numeric. If someone does decide to enter a
number, I want to ensure that number is unique relative to other
store_id's with non-null values. How, if possible, would I construct
such a validation rule in my user model?