diff options
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/database/click_house/hooks.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/database/click_house/hooks.rb b/spec/support/database/click_house/hooks.rb index e4e3e64a3cb..8c8afdbc689 100644 --- a/spec/support/database/click_house/hooks.rb +++ b/spec/support/database/click_house/hooks.rb @@ -37,6 +37,10 @@ class ClickHouseTestRunner @ensure_schema = true end + def reset_schema_cache! + @ensure_schema = nil + end + private def tables_for(db) @@ -53,6 +57,7 @@ RSpec.configure do |config| with_net_connect_allowed do if example.example.metadata[:click_house] == :without_migrations click_house_test_runner.clear_db + click_house_test_runner.reset_schema_cache! else click_house_test_runner.ensure_schema click_house_test_runner.truncate_tables |