Skip to content
Browse files

Sort the results by table name before printing

  • Loading branch information...
1 parent 20c0ab8 commit 1060d9fc9fa413e6d64736ed146d42221eaf71f6 @melriffe melriffe committed with mjankowski Jul 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/db/indexes.rake
View
2 tasks/db/indexes.rake
@@ -14,7 +14,7 @@ namespace :db do
end
end
puts "Foreign Keys:"
- indexes.each do |table, columns|
+ indexes.sort.each do |table, columns|
puts columns.map { |c| "\s\sadd_index '#{table}', '#{c}'\n"}
end
end

0 comments on commit 1060d9f

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