Reset table cache?

24 views
Skip to first unread message

Bonne Eggleston

unread,
May 13, 2013, 1:07:21 PM5/13/13
to database...@googlegroups.com
Hi there,
I'm using database_cleaner in an app which regularly adds and removes tables from the schema. I'm running into issues where database_cleaner tries to truncate a table that's already been dropped. I can reset the global table cache, but I believe database_cleaner maintains its own cache.
Would anyone know an easy way to reset that cache (or a workaround), or would I need to patch database_cleaner?
I should mention that I don't know the name of the new/dropped tables beforehand so I can't just filter them out. 

Thanks,
Bonne Eggleston
Reply all
Reply to author
Forward
0 new messages