diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-19 02:38:35 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-03-19 02:38:35 +0000 |
commit | 3f77a04cb5244111354b61b97b06ead49a153d29 (patch) | |
tree | 1aea06807a6061a4cf88120139259cad3b064384 /activerecord | |
parent | 389a667664c3a574b900c2bf539413daa0be67f5 (diff) | |
download | rails-3f77a04cb5244111354b61b97b06ead49a153d29.tar.gz rails-3f77a04cb5244111354b61b97b06ead49a153d29.tar.bz2 rails-3f77a04cb5244111354b61b97b06ead49a153d29.zip |
Only run migrations that look like migrations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-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 47a6ed7086..e9a3071251 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 |