Class: DatabaseCleaner::ActiveRecord::Deletion
- Inherits:
-
Truncation
- Object
- Truncation
- DatabaseCleaner::ActiveRecord::Deletion
- Defined in:
- lib/database_cleaner/active_record/deletion.rb
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
Methods inherited from Truncation
Methods included from Generic::Truncation
Methods included from Base
#connection_klass, #create_connection_klass, #db, #db=, #load_config
Methods included from Generic::Base
Instance Method Details
#clean ⇒ Object
55 56 57 58 59 |
# File 'lib/database_cleaner/active_record/deletion.rb', line 55 def clean each_table do |connection, table_name| connection.delete_table table_name end end |