On Jul 31, 2007, at 10:18 PM, Ari Brown wrote:

> Also, is there anything special I need to do when creating a column  
> that I'm using has_many on?
>
>
> Thanks,
> aRi
> -------------------------------------------|
> Nietzsche is my copilot
>
>
>
Yes.
given tables, say:
categories
stories

If a category has_many :stories
then table stories should have a column named category_id

Generally, this association is followed with story  
belongs_to :category for a one to many relationship.
There are also one to one relationships using has_one and belongs_to

Active Record (and Rails in general from that) uses a very clever  
system of English pluralization for table names and associations rely  
on singular/plural rules.