diff options
Diffstat (limited to 'spec/support/database_cleaner.rb')
-rw-r--r-- | spec/support/database_cleaner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index 01bf390d9e9..b31881e3082 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -14,7 +14,7 @@ RSpec.configure do |config| end config.append_after(:context, :migration) do - delete_from_all_tables! + delete_from_all_tables!(except: ['work_item_types']) # Postgres maximum number of columns in a table is 1600 (https://github.com/postgres/postgres/blob/de41869b64d57160f58852eab20a27f248188135/src/include/access/htup_details.h#L23-L47). # And since: @@ -61,7 +61,7 @@ RSpec.configure do |config| example.run - delete_from_all_tables! + delete_from_all_tables!(except: ['work_item_types']) self.class.use_transactional_tests = true end |