I have a table to enter Vehicle Names, model name is Vehicle I dont want name to repeat..so i have
validates_uniqueness_of :make, :case_sensitive => false
in my model. Thing is I have used soft delete to delete a record by setting is_deleted flag field to true. This is_deleted column is also present in Vehicle model.
So the problem is if I delete 1 table it just soft-deletes it and when I try to create one vehicle with same name which was soft-deleted then error occures because of validation as the field is not originaly deleted from DB.
Is there a simple way to solve this issue.