Method: Webhookdb::Organization#remove_related_database
- Defined in:
- lib/webhookdb/organization.rb
#remove_related_database ⇒ Object
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 self.db.transaction do self.lock! Webhookdb::Organization::DbBuilder.new(self). self.admin_connection_url_raw = "" self.readonly_connection_url_raw = "" self.save_changes end end |