mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Only run migrations that look like migrations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user