Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use += instead of iterating through each table

  • Loading branch information...
commit 1b906d5b91185f4d55c3f764c1fd01d660fc1ac5 1 parent 627c5b8
@kamui kamui authored bmabey committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/database_cleaner/generic/truncation.rb
View
4 lib/database_cleaner/generic/truncation.rb
@@ -11,9 +11,7 @@ def initialize(opts={})
@only = opts[:only]
@tables_to_exclude = (opts[:except] || []).dup
- migration_storage_names.each do |migration_storage_name|
- @tables_to_exclude << migration_storage_name
- end
+ @tables_to_exclude += migration_storage_names
@pre_count = opts[:pre_count]
@reset_ids = opts[:reset_ids]
end
Please sign in to comment.
Something went wrong with that request. Please try again.