Method: Webhookdb::Organization#remove_related_database

Defined in:
lib/webhookdb/organization.rb

Delete the org-specific database and remove the org connection strings. Use this when an org is to be deleted (either for real, or in test teardown).



239
240
241
242
243
244
245
246
247
# File 'lib/webhookdb/organization.rb', line 239

def remove_related_database
  self.db.transaction do
    self.lock!
    Webhookdb::Organization::DbBuilder.new(self).remove_related_database
    self.admin_connection_url_raw = ""
    self.readonly_connection_url_raw = ""
    self.save_changes
  end
end