module OnlineMigrations::ForeignKeyDefinition

@private

Public Instance Methods

defined_for?(to_table: nil, **options) click to toggle source
# File lib/online_migrations/foreign_key_definition.rb, line 7
def defined_for?(to_table: nil, **options)
  (to_table.nil? || to_table.to_s == self.to_table) &&
    options.all? { |k, v| self.options[k].to_s == v.to_s }
end