Displaying 1 result from an estimated 1 matches for "cvterm".
Did you mean:
vterm
2007 Mar 28
2
overiding concatenation of tables by alphabetical order
...wo tables, rails
expects a join table whose name is the concatenation of the two table
names in an alphabetical order.
However i have a number of tables which do not follow this convection
and wish to have rails read and recognize them.
for example i have a table called feature and another called cvterm. The
join table is however named feature_cvterm (rails would expect one
called cvterm_feature) So it happily responds by generating an error
that the table can''t be found or rather the class,
i wish to have rails recognize the feature_cvterm join table.
Which is the easiest way to do it?...