lib/ridgepole/diff.rb in ridgepole-0.7.0.beta20 vs lib/ridgepole/diff.rb in ridgepole-0.7.0.beta21
- old
+ new
@@ -126,10 +126,15 @@
from.delete(:options)
to.delete(:options)
table_delta[:table_options] = to_options
end
+ if @options[:dump_without_table_options]
+ from.delete(:options)
+ to.delete(:options)
+ end
+
unless from == to
@logger.warn(<<-EOS)
[WARNING] No difference of schema configuration for table `#{table_name}` but table options differ.
from: #{from}
to: #{to}
@@ -515,16 +520,14 @@
if parent_column_info != child_column_info
parent_label = "#{parent_table}.id"
child_label = "#{child_table}.#{column_name}"
label_len = [parent_label.length, child_label.length].max
- parent_column_info_str = parent_column_info.inspect.slice(1...-1)
- child_column_info_str = child_column_info.inspect.slice(1...-1)
@logger.warn(<<-EOS % [label_len, parent_label, label_len, child_label])
[WARNING] Relation column type is different.
- %*s: #{parent_column_info_str}
- %*s: #{child_column_info_str}
+ %*s: #{parent_column_info}
+ %*s: #{child_column_info}
EOS
end
end
end
end