I’ve been using Acts_as_Parnoid for a while and it has been working well
but I am now having a slight issue with it. I have a company table were
I would like to use validates_uniqueness_of :company_name. This
validation works if a company exists in the database and has not been
deleted. However, I also would like the validates_uniqueness_of to
work if a company has previously been deleted and has been flagged in
the deleted_at column. Currently, if a company has been deleted, it is
possible to create another company with the same name. I would like to
bring up a validation message to inform the user. Is there an easy way
to accomplish this?
Any help would be greatly appreciated.