Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread

 

By: Mike Champion
RE: acts_as_taggable breaks load_fixtures? [ reply ]  
2006-02-16 04:35
Nevermind - it was my problem ;-)

I had an old fixture lying around with the wrong name.

By: Mike Champion
acts_as_taggable breaks load_fixtures? [ reply ]  
2006-02-16 03:57
After I started using acts_as_taggle, but I get this error when I try to load my test fixtures:

rake -rpp load_fixtures
rake aborted!
Mysql::Error: #42S02Table 'app_dev.articles_tags' doesn't exist: DELETE FROM articles_tags


This only seems to happen for the taggable objects that are alphabetically *before* tags (in this case, "articles"). In my DB, the table is named "tags_articles" (like taggable wants) while the load_fixtures is clearly looking for the opposite. The only workaround I could come up with was to create that table, and just leave it blank.

Is there a better solution to this?