class ActiveRecord::DataIntegrity::Accordance::TablePresence

Check the presence of the underlying table for the model

Public Instance Methods

call() click to toggle source
# File lib/active_record/data_integrity/cop/accordance/table_presence.rb, line 10
def call
  connection.table_exists?(model.table_name).tap do |result|
    log("has no underlying table #{model.table_name}") unless result
    progress(result, 'T')
  end
end