Permalink
Browse files

Only run migrations that look like migrations

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 389a667 commit 3f77a04cb5244111354b61b97b06ead49a153d29 @dhh dhh 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 3f77a04

Please sign in to comment.