Methods

Files

DatabaseCleaner::DataMapper::Truncation

Public Instance Methods

clean(repository = :default) click to toggle source
# File lib/database_cleaner/data_mapper/truncation.rb, line 121
def clean(repository = :default)
  adapter = DataMapper.repository(repository).adapter
  adapter.disable_referential_integrity do
    tables_to_truncate.each do |table_name|
      adapter.truncate_table table_name
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.