Class: Restforce::DB::Cleaner
Overview
Restforce::DB::Cleaner is responsible for culling the matching database records when a Salesforce record is no longer available to synchronize for a specific mapping.
Instance Method Summary collapse
-
#run(*_) ⇒ Object
Public: Run the database culling loop for this mapping.
Methods inherited from Task
Constructor Details
This class inherits a constructor from Restforce::DB::Task
Instance Method Details
#run(*_) ⇒ Object
Public: Run the database culling loop for this mapping.
Returns nothing.
13 14 15 |
# File 'lib/restforce/db/cleaner.rb', line 13 def run(*_) @mapping.database_record_type.destroy_all(dropped_salesforce_ids) end |