search for: domain_urls_20

Displaying 1 result from an estimated 1 matches for "domain_urls_20".

Did you mean: domain_urls_
2009 Mar 18
1
set_table_name woes, fragmented domain class
...many different tables, each with its own suffix which corresponds to the id of the model to which all records in that particular table belong. For example, if I have a Domain AR object with an id of 20, all DomainURL objects that :belong_to that particular Domain object are stored in table domain_urls_20. This necessitates a call to set_table_name before the DomainURL objects are fetched, like so: DomainURL.set_table_name "domain_urls_" + domain.id However, when I go into production mode, I get mismatched table and column names on my find''s. I am assuming this is caused by...