On Mar 9, 9:37 am, David Lee <[email protected]> wrote:
> 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'

These are fine names.  I don't think it is worth the effort to create
aliases for the existing names, though.  You can always add a plugin
that does so.

> 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.

That's a lot of database dependent code, and it's not always possible
to do correctly.  I think it's best left in plugin territory.

Jeremy
--~--~---------~--~----~------------~-------~--~----~
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