Displaying 1 result from an estimated 1 matches for "comment_author_email".
2006 Apr 20
5
Integrating with Legacy Databases
...like to specify a prefix for the
column names in my table. For example, in ''Recipe 16 Integrating with
Legacy Databases'' (Rails Recipes, from PragProg, by Fowler) they deal
with integration with a WordPress db where all field names are
preceded by "comment_" -- i.e. comment_author_email.
The recipe explains how to deal with the primary key (comment_id) via:
ActiveRecord::Base.primary_key_prefix_type = :table_name_with_underscore
which is great: the primary key would obviously be the most important
piece to get working :)
However, it stops short of going into detail on dealing w...