1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
Rick Olson 2006-03-19 04:30:10 +00:00
parent 891a962a19
commit 639ce3b21d

View file

@ -352,7 +352,7 @@ module ActiveRecord
end end
def migration_files 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 migration_version_and_name(f).first.to_i
end end
down? ? files.reverse : files down? ? files.reverse : files