Linux Today: Linux News On Internet Time.

More on LinuxToday

Managing MySQL Table Relations with Rails' Active Record Association Types

Oct 11, 2007, 11:15 (0 Talkback[s])
(Other stories by Jason Gilmore)

"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 relationships..."

Complete Story

Related Stories: