I think this is the relationship model?

character has_and_belongs_to_many quests
character has_many objectives, :through => quests

quest has_and_belongs_to_many characters
quest has_many objectives

On Aug 26, 10:20 am, Jooma __ <[email protected]> wrote:
> Hello.
>
> For fun, I'm making a text based web MMO.
>
> I have the following tables to consider.
>
> characters
> quests
> objectives
>
> So right now my quests can have many objectives (ie: kill 10 wolves,
> kill pack leader).
>
> So that's easy enough.
> But many characters can have the same quests. So I made
>
> characters_quests
>
> Ok that's fine. But since quests have multiple objectives that I need to
> track how do I do this?
>
> characters_quests_objectives ?
>
> I don't know why  but I can't wrap my head around this relationship
> right now.
> --
> Posted viahttp://www.ruby-forum.com/.

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