I recently underwent a (forced) schema change and had to change my "Keyword" class''s table name to "keywords_raw". Changing this in the model was no problem. All my existing unit tests obviously assumed everything was named "keywords" so I''m trying to change things to work, but I can''t figure out the right combo. I''ve tried changing the fixture and unit test name to "keywords_raw" which loads the table ok, but then complains about not finding a class named "keywords_raw". I couldn''t find a table_name= method for fixtures/unit tests. Anyone have done something like this or have an idea on how to get around classes with customized tables names? Thanks, ed -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060811/6822fe49/attachment.html
I recently underwent a (forced) schema change and had to change my "Keyword" class''s table name to "keywords_raw". Changing this in the model was no problem. All my existing unit tests obviously assumed everything was named "keywords" so I''m trying to change things to work, but I can''t figure out the right combo. I''ve tried changing the fixture and unit test name to "keywords_raw" which loads the table ok, but then complains about not finding a class named "keywords_raw". I couldn''t find a table_name= method for fixtures/unit tests. Anyone have done something like this or have an idea on how to get around classes with customized tables names? Thanks, ed -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060814/6e80217e/attachment.html