From 65f2eeaaf5774f0891fff700f4defb0b90a05789 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Tue, 12 Mar 2019 22:26:45 +0100 Subject: Remove Marshal support from SchemaCache YAML has been used to serialize the schema cache ever since 2016 with Rails 5.1: 4c00c6ed --- .../lib/active_record/connection_adapters/schema_cache.rb | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'activerecord/lib/active_record/connection_adapters/schema_cache.rb') diff --git a/activerecord/lib/active_record/connection_adapters/schema_cache.rb b/activerecord/lib/active_record/connection_adapters/schema_cache.rb index c10765f42d..fd7de1ccf2 100644 --- a/activerecord/lib/active_record/connection_adapters/schema_cache.rb +++ b/activerecord/lib/active_record/connection_adapters/schema_cache.rb @@ -103,16 +103,6 @@ module ActiveRecord @data_sources.delete name end - def marshal_dump - # if we get current version during initialization, it happens stack over flow. - @version = connection.migration_context.current_version - [@version, @columns, @columns_hash, @primary_keys, @data_sources] - end - - def marshal_load(array) - @version, @columns, @columns_hash, @primary_keys, @data_sources = array - end - private def prepare_data_sources -- cgit v1.2.3