Class: DataMapper::Adapters::DataObjectsAdapter
- Inherits:
-
Object
- Object
- DataMapper::Adapters::DataObjectsAdapter
show all
- Defined in:
- lib/database_cleaner/data_mapper/truncation.rb
Instance Method Summary
collapse
Instance Method Details
#storage_names(repository = :default) ⇒ Object
9
10
11
|
# File 'lib/database_cleaner/data_mapper/truncation.rb', line 9
def storage_names(repository = :default)
raise NotImplementedError
end
|
#truncate_tables(table_names) ⇒ Object
13
14
15
16
17
|
# File 'lib/database_cleaner/data_mapper/truncation.rb', line 13
def truncate_tables(table_names)
table_names.each do |table_name|
truncate_table table_name
end
end
|