Okay I think I'm going to do some cleanup of these tables..

I'm going to remove name from the schedules table since it already 
exists in Teams.  I need to create an opponent_id as well in the 
schedules table.

Now I just need to make sure I supply the correct associations.  Would 
it be?..

class Team
  has_many :schedules
  has_many :opponents :through => :schedules
end

class Schedule
  belongs_to :team
end

Is that correct?

-- 
Posted via http://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