From bf37fd9695993de40b14c5378ad731580623821a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 3 Apr 2014 23:11:47 +0000 Subject: [PATCH] Format table list. git-svn-id: http://svn.redmine.org/redmine/trunk@13036 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/redmine.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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|