Browse Source

feat: destroy users

DO_NOT_MERGE
natdeanlewissoftwire 1 year ago
parent
commit
fe3dc24325
  1. 1
      DO NOT COMMIT/delete orgs script.rb

1
DO NOT COMMIT/delete orgs script.rb

@ -13,6 +13,7 @@ def delete_organisations(org_names)
org.parent_organisation_relationships.destroy_all
org.child_organisation_relationships.destroy_all
org.users.each { |u| u.legacy_users.destroy_all }
org.users.destroy_all
org.owned_lettings_logs.destroy_all
org.owned_sales_logs.destroy_all
org.managed_lettings_logs.destroy_all

Loading…
Cancel
Save