From: Marnen Laibow-Koser Date: 2010-02-05T04:46:47+09:00 Subject: Re: Finding duplicate records before creating using FasterCS James Edward Gray II wrote: > On Feb 4, 2010, at 1:15 PM, John Mcleod wrote: > >> I'm thinking about putting a conditional to check for the duplicates via >> column name. > > Why not just add a validates_uniqueness_of() validation the the Irb > model, so it will block the save of duplicate records? And follow that up with a unique index in the DB. Validations are insufficient by themselves. > > James Edward Gray II Best, --  Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.