Skip to content

Org Cleanup

Dave Kaplan edited this page Sep 5, 2018 · 2 revisions
orgs = []
Organization.find_each do |org|
  orgs << org if org.all_active_users.count <= 1 && org.collections.count <= 9
end
# orgs.each(&:destroy)

Clone this wiki locally