# Db: migrate issue

**URL:** <https://www.ruby-forum.com/t/db-migrate-issue/139831>\
**Category:** Rails\
**Created:** [June 7, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/db-migrate-issue/139831 "2008-06-07T20:02:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [June 7, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/db-migrate-issue/139831/1 "2008-06-07T20:02:35Z")

</div>

I am trying to create a user model. When I generate the script, rails  
creates all the files though the migrate file should be labeled  
001\_create\_users.rb. Instead the file has the date followed by some  
other number and then \_create\_users.rb. Also it looks like the template  
for the file is slightly off from what I was expecting.

class CreateUsers \< ActiveRecord::Migration  
def self.up  
create\_table :users do |t|

```
  t.timestamps
end

```

end

def self.down  
drop\_table :users  
end  
end

---

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [June 7, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/db-migrate-issue/139831/2 "2008-06-07T20:14:23Z")

</div>

On 7 Jun 2008, at 19:02, Sean S. wrote:

> I am trying to create a user model. When I generate the script, rails  
> creates all the files though the migrate file should be labeled  
> 001\_create\_users.rb. Instead the file has the date followed by some  
> other number and then \_create\_users.rb.  
> rails 2.1 is different. This is normal  
> ([http://ryandaigle.com/articles/2008/4/2/what-s-new-in-edge-rails-utc-based-migration-versioning](http://ryandaigle.com/articles/2008/4/2/what-s-new-in-edge-rails-utc-based-migration-versioning)  
> )

Fred
