Skip to content

Cleaning out bad data

Justin Coyne edited this page Jan 27, 2017 · 7 revisions

If the CreateSolrCollectionJob failed

Then you'll have a bunch of accounts without solr collections. These are not useful. Clean them up with:

Account.where(solr_endpoint_id:nil).each { |account| Apartment::Tenant.drop(account.tenant); account.destroy }