Skip to content
Browse files

Add explaining variables to db:migrate:status

  • Loading branch information...
1 parent 482fdad commit 5dbf37d04f705d4b309d8a9afab9bd49a1aa9c1b @DNNX DNNX committed Jun 25, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/railties/databases.rake
View
4 activerecord/lib/active_record/railties/databases.rake
@@ -116,8 +116,8 @@ db_namespace = namespace :db do
puts "\ndatabase: #{ActiveRecord::Base.connection_config[:database]}\n\n"
puts "#{'Status'.center(8)} #{'Migration ID'.ljust(14)} Migration Name"
puts "-" * 50
- (db_list + file_list).sort_by {|migration| migration[1]}.each do |migration|
- puts "#{migration[0].center(8)} #{migration[1].ljust(14)} #{migration[2]}"
+ (db_list + file_list).sort_by { |_, version, _| version }.each do |status, version, name|
+ puts "#{status.center(8)} #{version.ljust(14)} #{name}"
end
puts
end

0 comments on commit 5dbf37d

Please sign in to comment.
Something went wrong with that request. Please try again.