class ActiveRecord::SchemaMigration

def table_exists?

def table_exists?
  @pool.with_connection do |connection|
    connection.data_source_exists?(table_name)
  end
end