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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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? > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 10, 7:45 pm, Rick <Richard.T.Ll...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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. > > RickThat''s the truth. It is meant to try and help with distributed development teams having duplicate numbers for migration files.> On Nov 10, 8:42 am, Bert Ameche <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > 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? > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>Thank you very much, Rick and Bobnation! I thought I did something wrong. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nope, nothing wrong, just a change. Glad we can be of some help. On Nov 10, 9:07 pm, Bert Ameche <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > Thank you very much, Rick and Bobnation! I thought I did something > wrong. > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---