diff options
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index a19381ea64..7a1c47038d 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -59,7 +59,7 @@ module ActiveRecord end def migration_files - files = Dir["#{@migrations_path}/[0-9]*_*.rb"] + files = Dir["#{@migrations_path}/[0-9]*_*.rb"].sort down? ? files.reverse : files end @@ -91,4 +91,4 @@ module ActiveRecord (up? && version.to_i <= current_version) || (down? && version.to_i > current_version) end end -end
\ No newline at end of file +end |