Skip to content

Commit cc72f07

Browse files
authored
Skip migrations check for backwards compatibility tests (#4294)
This prevents running into timeouts when your feature branch misses a migration already on main.
1 parent 9e1744e commit cc72f07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spec/support/bootstrap/spec_bootstrap.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ def self.init(recreate_test_tables: true, do_schema_migration: true)
3232
db_resetter.recreate_tables(without_migration: !do_schema_migration)
3333
end
3434

35-
DB.load_models(db_config.config, db_config.db_logger)
35+
if do_schema_migration
36+
DB.load_models(db_config.config, db_config.db_logger)
37+
else
38+
DB.load_models_without_migrations_check(db_config.config, db_config.db_logger)
39+
end
3640
end
3741

3842
def self.seed

0 commit comments

Comments
 (0)