lib/ridgepole/diff.rb in ridgepole-0.6.3.beta vs lib/ridgepole/diff.rb in ridgepole-0.6.3.beta2
- old
+ new
@@ -241,12 +241,14 @@
table_delta[:indices] = indices_delta
end
end
def target?(table_name)
- if @options[:ignore_tables] and @options[:ignore_tables].any? {|i| i =~ table_name }
+ if @options[:tables] and @options[:tables].include?(table_name)
+ true
+ elsif @options[:ignore_tables] and @options[:ignore_tables].any? {|i| i =~ table_name }
false
- elsif @options[:tables] and not @options[:tables].include?(table_name)
+ elsif @options[:tables]
false
else
true
end
end