search for: forgeign

Displaying 1 result from an estimated 1 matches for "forgeign".

Did you mean: foreign
2006 Feb 06
1
belongs_to versus references
...he Rails book and I got to the part about belongs_to versus references. Shouldn''t references be allowed as a synonym to belongs_to? Looking at this from a schema in the model view point, belongs to corresponds to a foreign key with the cascade on delete option. References is just a normal forgeign key with no cascade option. -- Jon Smirl jonsmirl@gmail.com