From 7b1eeea5bc69747b5bfde2af2c7245339da2be74 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 16 Dec 2011 13:51:46 +0000 Subject: Should clear the primary keys cache also --- activerecord/lib/active_record/connection_adapters/schema_cache.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/connection_adapters/schema_cache.rb b/activerecord/lib/active_record/connection_adapters/schema_cache.rb index da507fd3ae..4e8932a695 100644 --- a/activerecord/lib/active_record/connection_adapters/schema_cache.rb +++ b/activerecord/lib/active_record/connection_adapters/schema_cache.rb @@ -34,6 +34,7 @@ module ActiveRecord def clear! @columns.clear @columns_hash.clear + @primary_keys.clear @tables.clear end -- cgit v1.2.3