Permalink
Browse files

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
  • Loading branch information...
1 parent 891a962 commit 639ce3b21d92208c3ce7510f32d823219b69c4ec @technoweenie technoweenie committed Mar 19, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/migration.rb
@@ -352,7 +352,7 @@ def assert_unique_migration_version(migrations, version)
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

0 comments on commit 639ce3b

Please sign in to comment.