From edc4162f710151a998a099624c61c346cdd29e6b Mon Sep 17 00:00:00 2001 From: Sergei Tsoganov Date: Thu, 16 Mar 2023 12:32:02 +0200 Subject: [PATCH] Corrected test errors --- config/application.rb | 2 ++ test/learning/paper_trail_test.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/config/application.rb b/config/application.rb index 287e678e50..33b5b96c25 100644 --- a/config/application.rb +++ b/config/application.rb @@ -96,5 +96,7 @@ class Application < Rails::Application config.active_record.belongs_to_required_by_default = false config.action_dispatch.trusted_proxies = %w(127.0.0.1/32).map { |proxy| IPAddr.new(proxy) } + + config.active_record.yaml_column_permitted_classes = [Symbol, Date, Time] end end diff --git a/test/learning/paper_trail_test.rb b/test/learning/paper_trail_test.rb index cecb4f0950..9e116bf639 100644 --- a/test/learning/paper_trail_test.rb +++ b/test/learning/paper_trail_test.rb @@ -10,6 +10,7 @@ class PaperTrailLearningTest < ActiveSupport::TestCase t.string :title # Otherwise `touch` fails silently + t.datetime :created_at t.datetime :updated_at end end