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 v开发者_C百科ia the software?
Thanks in Advance DeanThe 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.
精彩评论