I vote for:

  Post.references User
  User.referenced_by Post

  # and if you want to support many_to_many
  Tag.references_many :posts, :through => 'posts_tags'

Also, have you considered auto-generating these associations from the
database schema? I think it would be pretty cool to have these
relationships be determined from the underlying database, especially
if foreign_keys are used.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-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/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to