1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Sort migrations by the migration ID.

This commit is contained in:
Christopher Wade 2011-04-30 00:48:06 -05:00
parent 72a4893452
commit 2952040f70

View file

@ -210,10 +210,10 @@ db_namespace = namespace :db do
puts "\ndatabase: #{config['database']}\n\n"
puts "#{'Status'.center(8)} #{'Migration ID'.ljust(14)} Migration Name"
puts "-" * 50
file_list.each do |file|
file_list.sort_by {|file| file[1]}.each do |file|
puts "#{file[0].center(8)} #{file[1].ljust(14)} #{file[2].humanize}"
end
db_list.each do |version|
db_list.sort.each do |version|
puts "#{'up'.center(8)} #{version.ljust(14)} *** NO FILE ***"
end
puts