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:
parent
891a962a19
commit
639ce3b21d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue