aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/railties
diff options
context:
space:
mode:
authorViktar Basharymau <viktar.basharymau@thehamon.com>2014-06-25 16:44:54 +0300
committerViktar Basharymau <viktar.basharymau@thehamon.com>2014-06-27 17:46:47 +0300
commit5dbf37d04f705d4b309d8a9afab9bd49a1aa9c1b (patch)
tree7ef7e0db3415e3ebc876a654948048cf2ef68035 /activerecord/lib/active_record/railties
parent482fdad5ef8a73688b50bba3991dd4ef6f286edd (diff)
downloadrails-5dbf37d04f705d4b309d8a9afab9bd49a1aa9c1b.tar.gz
rails-5dbf37d04f705d4b309d8a9afab9bd49a1aa9c1b.tar.bz2
rails-5dbf37d04f705d4b309d8a9afab9bd49a1aa9c1b.zip
Add explaining variables to db:migrate:status
Diffstat (limited to 'activerecord/lib/active_record/railties')
-rw-r--r--activerecord/lib/active_record/railties/databases.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/railties/databases.rake b/activerecord/lib/active_record/railties/databases.rake
index 5c1c70f3d6..64aa046c16 100644
--- a/activerecord/lib/active_record/railties/databases.rake
+++ b/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