migration prefix problem

I'm using Windows XP SP2, Ruby 1.8.6 patch 111, Rails 1.2.3

When ever I run $ruby script/generate model someModel
or $ruby script/generate migration someMigration
I get migration files that are always prefixed with 001 instead of
incrementing with each new migration creation. Any suggestions would
be appreciated :smiley:

omg, I feel like such an ass. I spent hours digging through the rails
source printing out variables and hard coding strings, which
eventually showed me that @mirgation_directory is relative from where
you run the generator. Since I has cd'd into myapp/script it was
looking for db/migrate inside of myapp/script. So to any newbies out
there who run into this problem stay in your app root directory when
calling the generate script.