Forum: Ruby on Rails Duplicates

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
tmatsumoto (Guest)
on 2005-11-26 13:24
(Received via mailing list)
i'd gone through the tutorial in agile web dev for building an
application and i noticed for the user table, if you entered the same
user a new id would be assigned and the name would be duplicated. in
other programming experience i'd keep the user table with no
duplicates, but still use the existing id in join tables.

for instance a table of authors. that would have no duplicates, but
each time an article of an author was written the existing authors id
would be assigned to the article id in a join table.

is there a validation method or a similar process for doing this in

hammed (Guest)
on 2005-11-26 16:49
(Received via mailing list)
You can enforce unique users in your table using

This topic is locked and can not be replied to.