A rant about the Ruby on Rails framework
March 13, 2006 10:49 amI was a bit annoyed by the lack of an important feature that the RoR ActiveRecord should have been included since Day One. ActiveRecord in RoR is an ORM (Object-Relational Mapping) which takes care of the mostly automatic data mapping between the database and your application.
ActiveRecord uses reflection to gather all types of information about your database scheme and builds up the corresponding linkages.
However… except for the relationships between tables???? I make sure that my database tables are properly linked via foreign keys as well as establishing the primary keys and unique indexes.
ActiveRecord is strangely deficient in this area and requires you to repeat your definitions again inside the application layer at the model level. There’s no reason why this cannot be automatically done.
UncategorizedRelated posts:


