Skip to content

Commit

Permalink
Only run migrations that look like migrations
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Mar 19, 2006
1 parent 389a667 commit 3f77a04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/migration.rb
Expand Up @@ -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
Expand Down

0 comments on commit 3f77a04

Please sign in to comment.