Skip to content

Switch database cleaner strategy from `:trunction` to `:deletion`

Gabriel Mazetto requested to merge brodock/database-cleaner-strategy into master

What does this MR do?

Switch DatabaseCleaner strategy to improve performance on machines with slow I/O and prevent:

An error occurred in a `before(:suite)` hook.
Failure/Error: DatabaseCleaner.clean_with(:truncation)

ActiveRecord::QueryCanceled:
  PG::QueryCanceled: ERROR:  canceling statement due to statement timeout

Does this MR meet the acceptance criteria?

Conformity

Fix #336733 (closed)

Edited by Gabriel Mazetto

Merge request reports