From 639ce3b21d92208c3ce7510f32d823219b69c4ec Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Sun, 19 Mar 2006 04:30:10 +0000 Subject: [PATCH] Remember kiddies, Dir[] uses Dir#glob, not a Regexp git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3970 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index e9a3071251..47a6ed7086 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -352,7 +352,7 @@ module ActiveRecord end def migration_files - files = Dir["#{@migrations_path}/[0-9]+_*.rb"].sort_by do |f| + files = Dir["#{@migrations_path}/[0-9]*_*.rb"].sort_by do |f| migration_version_and_name(f).first.to_i end down? ? files.reverse : files