lib/ridgepole/diff.rb in ridgepole-0.7.8 vs lib/ridgepole/diff.rb in ridgepole-0.8.0.rc1

- old
+ new

@@ -1,7 +1,5 @@ -# frozen_string_literal: true - module Ridgepole class Diff PRIMARY_KEY_OPTIONS = %i[id limit default null precision scale collation unsigned].freeze def initialize(options = {}) @@ -349,12 +347,12 @@ table_delta[:indices] = indices_delta unless indices_delta.empty? end def target?(table_name) - if @options[:tables]&.include?(table_name) + if @options[:tables] && @options[:tables].include?(table_name) true - elsif @options[:ignore_tables]&.any? { |i| i =~ table_name } + elsif @options[:ignore_tables] && @options[:ignore_tables].any? { |i| i =~ table_name } false elsif @options[:tables] false else true