Freitag, 20. Juni 2008

Model Relationships - has_many belongs_to

ModelOne
has_many :model_twos
has_many :model_threes, :through :model_two

ModelTwo
belongs_to :model_one
belongs_to :model_three

ModelThree
has_many :model_twos
has_many :model_ones, :through :model_two

1 Kommentar:

Steffi hat gesagt…

This is a wonderful opinion. The things mentioned are unanimous and needs to be appreciated by everyone.
Scaffold