"In last week's article, I showed you how Rails' powerful
migrations feature eliminates the long-standing chasm separating
the way databases and code are maintained by offering a way to
programatically manage table structures. Combined with Rails'
Active Record implementation, programmers are able to more
effectively integrate databases into applications because the need
to switch from 'programmer' mode to 'database administrator' mode
has been practically eliminated.
"In this installment, I'll delve deeper these features, showing
you how Active Record can help you to manage table relations more
effectively than ever. By using association types and a simple way
to assign foreign keys to other tables, you can automate what is
otherwise often a tedious and confusing process when creating table
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.