Yesterday in mailing list of russian RoR group we have discussed following problem. MySQL database has unique index and model has validates_uniqueness_of constraint. Do we need to handle MySQL server exceptions or RoR’s validation will be enough?
validates_uniqueness_of and MySQL unique index
(Ruby & Rails) ·
(15,712 views)