aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/schema_cache.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2019-03-12 22:26:45 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2019-03-12 22:26:49 +0100
commit65f2eeaaf5774f0891fff700f4defb0b90a05789 (patch)
treeb346236d109eea6d007ce94f9558fa0596f80f21 /activerecord/lib/active_record/connection_adapters/schema_cache.rb
parent386e2c7357d8e15ab52f63c7d79101458561fbb1 (diff)
downloadrails-65f2eeaaf5774f0891fff700f4defb0b90a05789.tar.gz
rails-65f2eeaaf5774f0891fff700f4defb0b90a05789.tar.bz2
rails-65f2eeaaf5774f0891fff700f4defb0b90a05789.zip
Remove Marshal support from SchemaCache
YAML has been used to serialize the schema cache ever since 2016 with Rails 5.1: 4c00c6ed
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/schema_cache.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/schema_cache.rb10
1 files changed, 0 insertions, 10 deletions
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