summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-04-03 23:11:47 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-04-03 23:11:47 +0000
commitbf37fd9695993de40b14c5378ad731580623821a (patch)
tree891818390da2143cd88c7387d4c006dc1e88ed6c
parent08b96d8b470fa63cb147b6e2a23eb510ff644da3 (diff)
downloadredmine-bf37fd9695993de40b14c5378ad731580623821a.tar.gz
redmine-bf37fd9695993de40b14c5378ad731580623821a.zip
Format table list.
git-svn-id: http://svn.redmine.org/redmine/trunk@13036 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/tasks/redmine.rake3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tasks/redmine.rake b/lib/tasks/redmine.rake
index c8d35afb2..c9ee517ec 100644
--- a/lib/tasks/redmine.rake
+++ b/lib/tasks/redmine.rake
@@ -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|