Class: Cranium::ImportStrategy::Delete
- Defined in:
- lib/cranium/import_strategy/delete.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Cranium::ImportStrategy::Base
Instance Method Details
#import_from(source_table) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/cranium/import_strategy/delete.rb', line 3 def import_from(source_table) @source_table = source_table delete_existing_records puts @source_table database[@source_table].count end |