When using relationships in rails are they stored in the database so all foreign keys are stored in the tables and such like or are all relationships controlled via the software?
Thanks in Advance
Dean
views:
25answers:
1
+2
A:
The foreign keys are stored in the tables. The has_many
and belongs_to
declarations in the models are only there to create the attributes used to access the relationships.
Pär Wieslander
2010-07-02 19:43:02