Class: BridgeCache::AffiliatedSubAccount

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

Class Method Summary collapse

Methods included from Data::BridgeModel

cleanup, create_from_csv_row, import_from_csv, webhook_completed, webhook_created, webhook_deleted, webhook_updated

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