From a10bf50824b38808052aca83782ec877ae06db6b Mon Sep 17 00:00:00 2001 From: Helge Rausch Date: Wed, 31 Jul 2024 08:47:12 +0200 Subject: [PATCH] Configure coder for serialized attributes --- app/models/snp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/snp.rb b/app/models/snp.rb index 963e9bd0..4c40475e 100644 --- a/app/models/snp.rb +++ b/app/models/snp.rb @@ -9,8 +9,8 @@ class Snp < ApplicationRecord has_many :snp_references has_many :snp_comments - serialize :allele_frequency - serialize :genotype_frequency + serialize :allele_frequency, YAML + serialize :genotype_frequency, YAML extend FriendlyId friendly_id :name, use: :history, slug_column: :name