Commit 715ee581 authored by Robert Speicher's avatar Robert Speicher

Merge branch '37608-reset-all-connections' into 'master'

Reset all connection schema cache after migration tests

See merge request !14195
parents 8a51771a 82f18eab
......@@ -16,7 +16,9 @@ module MigrationsHelpers
end
def reset_column_in_migration_models
ActiveRecord::Base.clear_cache!
ActiveRecord::Base.connection_pool.connections.each do |conn|
conn.schema_cache.clear!
end
described_class.constants.sort.each do |name|
const = described_class.const_get(name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment