Class: BridgeCache::AffiliatedSubAccount

Inherits:
BridgeBaseModel
  • Object
show all
Extended by:
Data::BridgeModel
Defined in:
app/models/bridge_cache/affiliated_sub_account.rb

Constant Summary

Constants inherited from BridgeBaseModel

BridgeBaseModel::BRIDGE_ID, BridgeBaseModel::DOMAIN_ID, BridgeBaseModel::OWNER_ID, BridgeBaseModel::PARENT_ID

Class Method Summary collapse

Methods included from Data::BridgeModel

adjusted_table_name, cleanup, create_from_csv_row, extended, for_domain, import_from_csv, is_active?, webhook_completed, webhook_created, webhook_deleted, webhook_updated

Methods inherited from BridgeBaseModel

#adjusted_table_name, #bridge_id

Class Method Details

.cleanup(current_row_ids) ⇒ Object



16
17
18
# File 'app/models/bridge_cache/affiliated_sub_account.rb', line 16

def self.cleanup(current_row_ids)
  BridgeCache::AffiliatedSubAccount.where.not(bridge_id: current_row_ids).destroy_all
end