[rspec-users] Where are those tables listed for fixtures?

Nick Hoffman nick at deadorange.com
Fri Oct 17 15:17:28 EDT 2008

On 2008-10-17, at 14:46, Rasmus Rasmussen wrote:
> I'm sorry if this is posted in wrong forum. I am new to all of this  
> with
> rails and rspec.
> Something got messed up when I changed a table's name from 'works' to
> 'work_periods'. Now the fixture:load thing does not work. Obviously  
> the
> old table is still in there in some file.
> Anyone have any idea on where to find that file? Where does rspec read
> all tables when it deletes table-entries?
>> rake db:fixtures:load
>> rake aborted!
>> Mysql::Error: #42S02Table 'db_development.works' doesn't exist:  
>> DELETE FROM works

Hi Rasmus. Have you grepped through your application for "works", and  
looked for all files named "*works*"? Eg:

$ grep -rni 'works' /path/to/app/
$ find /path/to/app/ -iname '*works*'

Hope that helps,

More information about the rspec-users mailing list