Commit db4bd1a6 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Clear schema cache after running tests for migrations

parent 07381107
......@@ -16,6 +16,8 @@ module MigrationsHelpers
end
def reset_column_in_migration_models
ActiveRecord::Base.clear_cache!
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