Format table list.

git-svn-id: http://svn.redmine.org/redmine/trunk@13036 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-04-03 23:11:47 +00:00
parent 08b96d8b47
commit bf37fd9695
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@ DESC
tables = ActiveRecord::Base.connection.tables.sort - %w(schema_migrations plugin_schema_info)
if (tables - target_tables).any?
abort "The following table(s) are missing from the target database: #{(tables - target_tables).join(', ')}"
list = (tables - target_tables).map {|table| "* #{table}"}.join("\n")
abort "The following table(s) are missing from the target database:\n#{list}"
end
tables.each do |table_name|