diff options
author | Rick Olson <technoweenie@gmail.com> | 2006-03-19 04:30:10 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2006-03-19 04:30:10 +0000 |
commit | 639ce3b21d92208c3ce7510f32d823219b69c4ec (patch) | |
tree | d4b640e2a883befe463f4d7072f3721b18efcd00 /activerecord/lib/active_record | |
parent | 891a962a192bdd7eb0402b41e11a5e5657fe961c (diff) | |
download | rails-639ce3b21d92208c3ce7510f32d823219b69c4ec.tar.gz rails-639ce3b21d92208c3ce7510f32d823219b69c4ec.tar.bz2 rails-639ce3b21d92208c3ce7510f32d823219b69c4ec.zip |
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
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |