What is causing the 'Alias parsing was not enabled' error in Psych while upgrading Rails to 6.0.6.1 and how can it be resolved?

767 views Asked by At

Alias parsing was not enabled getting psych error when upgrading rails from 5.2 to 6.0.6.1

.rvm/gems/ruby-2.7.8@reports2/gems/psych-5.1.0/lib/psych/visitors/to_ruby.rb:432:in `visit_Psych_Nodes_Alias': Cannot load database configuration:

Alias parsing was not enabled. To enable it, pass `aliases: true` to `Psych::load` or `Psych::safe_load`. (Psych::AliasesNotEnabled)

please provide some solid solution for this error.

my changes
in environment.rb file
require_relative 'application'
in development.rb file
config.cache_store = :redis_cache_store
in asset.rb
Rails.application.config.assets.paths << Rails.root.join('node_modules')
in application.rb
require_relative 'boot'
config.load_defaults 6.0

0

There are 0 answers