# Migration file name

**URL:** <https://www.ruby-forum.com/t/migration-file-name/139944>\
**Category:** Rails\
**Created:** [June 9, 2008, 1:13pm UTC](https://www.ruby-forum.com/t/migration-file-name/139944 "2008-06-09T13:13:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vincentr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@vincentr](https://www.ruby-forum.com/u/vincentr)\
**Post date:** [June 9, 2008, 1:13pm UTC](https://www.ruby-forum.com/t/migration-file-name/139944/1 "2008-06-09T13:13:00Z")

</div>

Hi everybody,  
I was just wondering if the migration files name changed with rails  
2.1.0. I use to learn rails with the famous book Agile Development  
with Rails and for this I had rails 1.2.3. The migration files were  
like 001\_create\_pages.rb. I installed rails 2.1.0 yesterday and now  
I’ve got weird filename including the date  
20080608231851\_create\_pages.rb.  
Does anyone know what’s happening?  
Thanks in advance for your help…  
V.

---

<div class="post-metadata">

**Author:** ![vincentr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@vincentr](https://www.ruby-forum.com/u/vincentr)\
**Post date:** [June 9, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/migration-file-name/139944/2 "2008-06-09T13:14:46Z")

</div>

On 9 Jun 2008, at 12:03, vincentr wrote:

> Hi everybody,  
> I was just wondering if the migration files name changed with rails  
> 2.1.0. I use to learn rails with the famous book Agile Development  
> with Rails and for this I had rails 1.2.3. The migration files were  
> like 001\_create\_pages.rb. I installed rails 2.1.0 yesterday and now  
> I’ve got weird filename including the date  
> 20080608231851\_create\_pages.rb.  
> Does anyone know what’s happening?  
> Thanks in advance for your help…

That’s just how migrations are named in 2.1. see also  
[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

---

<div class="post-metadata">

**Author:** ![vincentr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@vincentr](https://www.ruby-forum.com/u/vincentr)\
**Post date:** [June 9, 2008, 1:14pm UTC](https://www.ruby-forum.com/t/migration-file-name/139944/3 "2008-06-09T13:14:46Z")

</div>

The leading numbers are UTC timestamps. See  
[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)  
.

Regards,  
Craig

---

<div class="post-metadata">

**Author:** ![vincentr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/b77776/32.png) [@vincentr](https://www.ruby-forum.com/u/vincentr)\
**Post date:** [June 9, 2008, 1:18pm UTC](https://www.ruby-forum.com/t/migration-file-name/139944/4 "2008-06-09T13:18:18Z")

</div>

Thanks guys!  
V.
