Class: DatabaseCleaner::ActiveShard::Truncation
- Inherits:
-
Object
- Object
- DatabaseCleaner::ActiveShard::Truncation
- Includes:
- Base, Generic::Truncation
- Defined in:
- lib/active_shard/database_cleaner/truncation.rb
Instance Method Summary collapse
Instance Method Details
#clean ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/active_shard/database_cleaner/truncation.rb', line 8 def clean for_each_shard do |c| c.disable_referential_integrity do c.truncate_tables(tables_to_truncate(c)) end end end |