# Db:migrate fail's after a single simple scaffold in WindowsXP with sqlite3

**URL:** <https://www.ruby-forum.com/t/db-migrate-fails-after-a-single-simple-scaffold-in-windowsxp-with-sqlite3/165401>\
**Category:** Rails\
**Created:** [April 13, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/db-migrate-fails-after-a-single-simple-scaffold-in-windowsxp-with-sqlite3/165401 "2009-04-13T18:30:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgirard1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@mgirard1](https://www.ruby-forum.com/u/mgirard1)\
**Post date:** [April 13, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/db-migrate-fails-after-a-single-simple-scaffold-in-windowsxp-with-sqlite3/165401/1 "2009-04-13T18:30:07Z")

</div>

I tried the following in a new directory:

C:\Sources\rails\> rails blog  
[…]

C:\Sources\rails\> cd blog  
C:\Sources\rails\> ruby script/generate scaffold Post title:string  
body:text  
C:\Sources\rails\> rake db:migrate

The migration successfully created the posts table, but the  
db:schema:dump target fails in sqlite3\_adapter.rb on the “Could not  
find table […]” line.

I did some research and someone suggested to remove the  
quote\_table\_name function call, this fixes that problem for me.

I just though someone else might have the same problem and that this  
information might help!

In short remove the line:  
returning structure = @connection.table\_info(quote\_table\_name  
(table\_name)) do  
and replace it by:  
returning structure = @connection.table\_info(table\_name) do

My environment:

C:\Sources\rails\blog\>sqlite3 -version  
3.6.12

C:\Sources\rails\blog\>ruby -v  
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

C:\Sources\rails\blog\>rails -v  
Rails 2.3.2
