From: Sammy Larbi Date: 2007-04-30T23:44:57+09:00 Subject: Re: RoR how does scaffold work? anansi wrote, On 4/30/2007 9:40 AM: > Hi, > I wanna write a little blog in ruby so I started with creating a > mysql-db with blog_test, blog_development, blog_production. Then I > created a new rails project with "rails blog". I create, in the folder > db, a file create.sql with this content: > > drop table if exists entrys; > > create table entrys ( > id int not null auto_increment, > headline varchar(100) not null, > news text not null, > primary key (id) > ); > > then I did: > mysql blog_development which works without problems. After that I changed /config/database.yml: > > I think generally, you'll want to use the migrations, as I think that works some magic on config files which the scaffold command may be looking for. For more info on migrations, see http://www.google.com/search?q=ruby+on+rails+migrations