Displaying 1 result from an estimated 1 matches for "for_table".
2005 Dec 30
5
HABTM with finder_sql problem (Rails bug?)
I''m building an app that needs i18n support across the entire database
(i.e. localized attributes). In order to do this I''ve created a
special HABTM join table that can be associated with _any_ other
table:
create table language_strings (
for_table varchar(255) not null,
foreign_id int not null,
language_id varchar(5) not null,
attr_name varchar(255) not null,
value text not null,
primary key (for_table, foreign_id, language_id)
);
Notice the for_table and foreign_id columns. These two are used to
identify the table and row to which...