Before updating scaffolding from new DB schema, try creating a table for your model

What does the message "error Before updating scaffolding from new DB
schema, try creating a table for your model (Legacy)" mean? My
googling shows that others have received similar messages, but it's
not clear to me the import of the message.

Here's what I'm doing which generates this error:

[thufir@localhost ~]$ mysql -u feeds -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 21 to server version: 5.0.27\

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

use legacy;

Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

model means database schema? MySQL shows a table with a small "l" :frowning:

or, model means something in ruby?

thanks,

Thufir (not at home)

[...]

It sounds like your model hasn't got a table. Is it looking for
'Legacies'? with capital L.

[...]

Changed the schema, and the database.yml file, same result:

[thufir@localhost ~]$ ./ruby.legacy.txt

Tue Jun 19 14:10:57 BST 2007
/home/thufir
thufir
Fedora Core release 6 (Zod)
X=0
while [ $X -le 20 ]
do
        echo ""
        X=$((X+1))
done

date
pwd
whoami
cat /etc/fedora-release
cat /home/thufir/ruby.legacy.txt

X=0
while [ $X -le 5 ]
do
        echo ""
        X=$((X+1))
done

echo "the database configuration file"
cat /home/thufir/legacy/config/database.yml

X=0
while [ $X -le 5 ]
do
        echo ""
        X=$((X+1))
done

#echo "rails lecacy..."
#this command only needs to be executed for the initial setup
rails legacy

X=0
while [ $X -le 5 ]
do
        echo ""
        X=$((X+1))
done

#echo "ruby /home/thufir/legacy/script/generate controller hello..."
ruby /home/thufir/legacy/script/generate controller hello

X=0
while [ $X -le 5 ]
do
        echo ""
        X=$((X+1))
done

echo "hello world" > /home/thufir/legacy/app/views/hello/index.rhtml

X=0
while [ $X -le 5 ]
do
        echo ""
        X=$((X+1))
done

#echo "ruby /home/thufir/legacy/script/generate scaffold legacy..."
ruby /home/thufir/legacy/script/generate scaffold legacy

X=0
while [ $X -le 5 ]
do
        echo ""
        X=$((X+1))
done

#echo "ruby script/server..."

echo "http://localhost:3000/legacies/list"
echo "http://localhost:3000/legacy/list"

X=0
while [ $X -le 5 ]
do
        echo ""
        X=$((X+1))
done

X=0
while [ $X -le 5 ]
do
        echo ""
        X=$((X+1))
done

ruby /home/thufir/legacy/script/server

the database configuration file
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.