Skip to content

Instantly share code, notes, and snippets.

@guiltry
Last active August 29, 2015 14:18
Show Gist options
  • Save guiltry/5e7cc329459fb3b7f305 to your computer and use it in GitHub Desktop.
Save guiltry/5e7cc329459fb3b7f305 to your computer and use it in GitHub Desktop.
DatabaseCleaner.strategy = :truncation, {:only => %w[widgets dogs some_other_collection]}
# or
DatabaseCleaner.strategy = :truncation, {:except => %w[widgets]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment