On May 21, 12:20 pm, Marnen Laibow-Koser <[email protected]> wrote:
> Yes -- validates_uniqueness_of will do the trick -- but never rely
> solely on ActiveRecord constraints.  You need a unique index (and
> foreign key constraints) on the DB side too.

I am already using the validations and key constrains. I was actually
wondering about the possibility of having Active Record generate
helper methods reflecting that kind of relation.

Thanks,
Andre

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to