Class: TableManager
- Includes:
- TableModule
- Defined in:
- lib/dataload/table_manager.rb
Instance Method Summary collapse
Instance Method Details
#delete_rows! ⇒ Object
3 4 5 6 7 8 |
# File 'lib/dataload/table_manager.rb', line 3 def delete_rows! return unless ar_cls.table_exists? Dataload.log "Deleting #{ar_cls.count} rows from table '#{table_name}'" ar_cls.connection.execute("DELETE from #{table_name}") Dataload.log "Deleted rows from table '#{table_name}'" end |