I was wondering how to get Rails 2.1 migrates to go from generating 20080910014108_create_table.rb-esque migrations to the old 22_create_table.rb style ones. I am sure that there is some sort of advantage in having timestamps in the file name, I just haven''t figured it out yet. Thanks in advance, Joe --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
the advantage to the datetime based filenames over the simple integers is that it allows you to work in branches, make migrations and merge it all back together later without fear of conflicting migrations. why would you want to go back? On Sep 9, 8:45 pm, Trogdor <Trogdo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I was wondering how to get Rails 2.1 migrates to go from generating > 20080910014108_create_table.rb-esque migrations to the old > 22_create_table.rb style ones. I am sure that there is some sort of > advantage in having timestamps in the file name, I just haven''t > figured it out yet. > > Thanks in advance, > > Joe--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Ahh, that does make sense. I am the only dev working on this project, so I do a lot of rake db:migrate VERSION=22 stuff to roll back migrations, trying to do VERSION=20080214017515 is just a hassle. Being a loner I forget sometimes that people write software with other people... On Sep 9, 11:02 pm, Andrew Bloom <akbl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> the advantage to the datetime based filenames over the simple integers > is that it allows you to work in branches, make migrations and merge > it all back together later without fear of conflicting migrations. why > would you want to go back? > > On Sep 9, 8:45 pm, Trogdor <Trogdo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I was wondering how to get Rails 2.1 migrates to go from generating > > 20080910014108_create_table.rb-esque migrations to the old > > 22_create_table.rb style ones. I am sure that there is some sort of > > advantage in having timestamps in the file name, I just haven''t > > figured it out yet. > > > Thanks in advance, > > > Joe--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
If you''re wanting to rollback, just use rake db:rollback? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
If you still need it you can set config.active_record.timestamped_migrations = false to have migrations with numeric prefix instead of UTC timestamp. But for this you need to upgrade to Rails 2.1.1. See #21 under ''Active Record'' heading in this change log: http://gist.github.com/8946 -subbu On Sep 10, 8:26 am, Ryan Bigg <radarliste...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> If you''re wanting to rollback, just use rake db:rollback?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---