I’ve got a facade column set up (specifically, I’ve got a column in my
database called ip_address that stores an IP as a 32-bit integer rather
than the dotted notation, but the model reads and writes as the dotted
notation), but I want to validate that the IP is unique in the database
whenever an entry is created or edited.
is there any way to do this?
simply putting ‘validates_uniqueness_of :ip_address’ doesn’t work since
it’s querying my database with the dotted notation rather than the
32-bit integer value.