Forum: Ruby on Rails Migration File

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5d8390f3baaae93d93da4710555e09cb?d=identicon&s=25 Bert Ameche (bert_a)
on 2008-11-10 19:42
All of the books I have show the migration file naming convention is
001, 002, etc

When I ran script/generate model, the migration file was named:
20081110174511_create_users.rb

Why does it have this complex number instead of 001?  Is there a way to
redo this and get the simpler name?
Af2ce6689213fdb78913a9662b18da6b?d=identicon&s=25 Rick (Guest)
on 2008-11-11 02:46
(Received via mailing list)
It's a date/time stamp.  I guess it's guaranteed to be unique - as
long as you ensure that you timeofday clock is in good shape.

Rick

On Nov 10, 8:42 am, Bert Ameche <rails-mailing-l...@andreas-s.net>
247cd3d37084a3d6794076207bd9fbd7?d=identicon&s=25 Bobnation (Guest)
on 2008-11-11 03:33
(Received via mailing list)
On Nov 10, 7:45 pm, Rick <Richard.T.Ll...@gmail.com> wrote:
> It's a date/time stamp.  I guess it's guaranteed to be unique - as
> long as you ensure that you timeofday clock is in good shape.
>
> Rick

That's the truth. It is meant to try and help with distributed
development teams having duplicate numbers for migration files.
5d8390f3baaae93d93da4710555e09cb?d=identicon&s=25 Bert Ameche (bert_a)
on 2008-11-11 04:07
Rick wrote:
> It's a date/time stamp.  I guess it's guaranteed to be unique - as
> long as you ensure that you timeofday clock is in good shape.
>
> Rick
>
> On Nov 10, 8:42�am, Bert Ameche <rails-mailing-l...@andreas-s.net>

Thank you very much, Rick and Bobnation!  I thought I did something
wrong.
247cd3d37084a3d6794076207bd9fbd7?d=identicon&s=25 Bobnation (Guest)
on 2008-11-11 16:18
(Received via mailing list)
Nope, nothing wrong, just a change. Glad we can be of some help.

On Nov 10, 9:07 pm, Bert Ameche <rails-mailing-l...@andreas-s.net>
This topic is locked and can not be replied to.