mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
use += instead of iterating through each table
This commit is contained in:
parent
627c5b8590
commit
1b906d5b91
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue