Is there a way to determine whether all migrations have been run? ActiveRecord::Migrator.get_all_versions only returns the migrations run (but not the ones not yet run). Thx Clemens --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Nov-13 10:37 UTC
Re: migrations - determine all available migration (files)
On Nov 13, 7:07 am, Clemens <clemens.w...-7fY5B7ekypAfv37vnLkPlQ@public.gmane.org> wrote:> Is there a way to determine whether all migrations have been run? > > ActiveRecord::Migrator.get_all_versions only returns the migrations > run (but not the ones not yet run). >just scanning throught the source, ActiveRecord::Migrator.new.pending_migrations looks promising. Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---