@@ -68,7 +68,8 DESC | |||||
68 | tables = ActiveRecord::Base.connection.tables.sort - %w(schema_migrations plugin_schema_info) |
|
68 | tables = ActiveRecord::Base.connection.tables.sort - %w(schema_migrations plugin_schema_info) | |
69 |
|
69 | |||
70 | if (tables - target_tables).any? |
|
70 | if (tables - target_tables).any? | |
71 | abort "The following table(s) are missing from the target database: #{(tables - target_tables).join(', ')}" |
|
71 | list = (tables - target_tables).map {|table| "* #{table}"}.join("\n") | |
|
72 | abort "The following table(s) are missing from the target database:\n#{list}" | |||
72 | end |
|
73 | end | |
73 |
|
74 | |||
74 | tables.each do |table_name| |
|
75 | tables.each do |table_name| |
General Comments 0
You need to be logged in to leave comments.
Login now