Closed aidanharan closed 8 months ago
If you do not check the database version then the schema cache is not initialized.
Fixes test ActiveRecord::ConnectionAdapters::SchemaCacheTest.test_when_lazily_load_schema_cache_is_set_cache_is_lazily_populated_when_est_connection.
ActiveRecord::ConnectionAdapters::SchemaCacheTest.test_when_lazily_load_schema_cache_is_set_cache_is_lazily_populated_when_est_connection
https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/actions/runs/6496031218/job/17642131292
Error: ActiveRecord::ConnectionAdapters::SchemaCacheTest#test_when_lazily_load_schema_cache_is_set_cache_is_lazily_populated_when_est_connection: NoMethodError: undefined method `size' for nil:NilClass rails (319256ac4708) activerecord/test/cases/connection_adapters/schema_cache_test.rb:392:in `test_when_lazily_load_schema_cache_is_set_cache_is_lazily_populated_when_est_connection'
If you do not check the database version then the schema cache is not initialized.
Fixes test
ActiveRecord::ConnectionAdapters::SchemaCacheTest.test_when_lazily_load_schema_cache_is_set_cache_is_lazily_populated_when_est_connection
.https://github.com/rails-sqlserver/activerecord-sqlserver-adapter/actions/runs/6496031218/job/17642131292