Class: DataMapper::Adapters::DataObjectsAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/database_cleaner/data_mapper/truncation.rb

Direct Known Subclasses

MysqlAdapter, PostgresAdapter

Instance Method Summary collapse

Instance Method Details

#storage_names(repository = :default) ⇒ Object

Raises:

  • (NotImplementedError)

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