use += instead of iterating through each table

This commit is contained in:
Jack Chu 2012-09-10 15:54:17 -04:00 committed by Ben Mabey
parent 627c5b8590
commit 1b906d5b91

View file

@ -11,9 +11,7 @@ module DatabaseCleaner
@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