diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-12-16 13:51:46 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-12-16 13:52:07 +0000 |
commit | 7b1eeea5bc69747b5bfde2af2c7245339da2be74 (patch) | |
tree | 9c7cef95d23047079c8ac5be1bca58f98d338839 /activerecord/lib/active_record | |
parent | 7f20bb995aa34c6c6869543209595ff811e9dbc3 (diff) | |
download | rails-7b1eeea5bc69747b5bfde2af2c7245339da2be74.tar.gz rails-7b1eeea5bc69747b5bfde2af2c7245339da2be74.tar.bz2 rails-7b1eeea5bc69747b5bfde2af2c7245339da2be74.zip |
Should clear the primary keys cache also
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/schema_cache.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |