Tag: validations
Single Table Inheritance validates_uniqueness_of Problem
Consider a case of STI where: Now try following at console: This will let you create three records in users table with same name, validates_uniqueness_of written in User class has no effect on it. validates_uniqueness_of automatically scoped with class names, that means it will not let you create two managers with same name or two … Continue reading Single Table Inheritance validates_uniqueness_of Problem