# Generate Model or Migration not getting 001\_create.rb

**URL:** <https://www.ruby-forum.com/t/generate-model-or-migration-not-getting-001-create-rb/151819>\
**Category:** Rails\
**Created:** [October 26, 2008, 9:55am UTC](https://www.ruby-forum.com/t/generate-model-or-migration-not-getting-001-create-rb/151819 "2008-10-26T09:55:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wes\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/c77e96/32.png) [@Wes\_D](https://www.ruby-forum.com/u/Wes_D)\
**Post date:** [October 26, 2008, 9:55am UTC](https://www.ruby-forum.com/t/generate-model-or-migration-not-getting-001-create-rb/151819/1 "2008-10-26T09:55:33Z")

</div>

When I run “ruby script/generate model users” or “ruby script/generate  
migration users” (just as a test to see what number the migrations is  
going to give me as a first run on a newly created project) I get  
something like

20081026044945\_create\_users.rb

when it should be

001\_create\_users.rb

Man, I have been trying to figure this out all day. I uninstalled  
rails and re-installed and tried all kinds of stuff and I cant seem to  
get this to work.

I am using Eclipse as my IDE with the APTANA plugin. I have ruby 1.8  
installed and rails 2 .x.x installed.

Has anyone else had this problem. I cant seem to find an answer from a  
past post.

Thanks!

---

<div class="post-metadata">

**Author:** ![Wes\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/c77e96/32.png) [@Wes\_D](https://www.ruby-forum.com/u/Wes_D)\
**Post date:** [October 26, 2008, 10:05am UTC](https://www.ruby-forum.com/t/generate-model-or-migration-not-getting-001-create-rb/151819/2 "2008-10-26T10:05:41Z")

</div>

There is nothing wrong. This is the new way Rails 2.x creates migration.  
It doesn’t seem like it, but it is in fact much easier to maintain.

PS: in the future, don’t flood the list with the exact same question.

---

<div class="post-metadata">

**Author:** ![Wes\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/c77e96/32.png) [@Wes\_D](https://www.ruby-forum.com/u/Wes_D)\
**Post date:** [October 29, 2008, 5:00pm UTC](https://www.ruby-forum.com/t/generate-model-or-migration-not-getting-001-create-rb/151819/3 "2008-10-29T17:00:59Z")

</div>

Yea sorry about that. It took over 2 hours for the first one to come  
up. I thought it didn’t go through.

On Oct 26, 4:05 am, Fernando P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
