Skip to content

Commit

Permalink
Fix db migration issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rawOrlando committed Feb 22, 2024
1 parent 10bc23a commit 8faa80d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions config/environments/tdldev.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
# This resolves an issue loading symbols causing pysch disallowed class error
# Check out https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
config.active_record.yaml_column_permitted_classes = [Symbol, Hash, HashWithIndifferentAccess]
# Do not eager load code on boot.
config.eager_load = false

Expand Down Expand Up @@ -82,4 +79,10 @@
# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
# config.file_watcher = ActiveSupport::EventedFileUpdateChecker

# This resolves an issue loading symbols causing pysch disallowed class error
# Check out https://discuss.rubyonrails.org/t/cve-2022-32224-possible-rce-escalation-bug-with-serialized-columns-in-active-record/81017
config.after_initialize do
config.active_record.yaml_column_permitted_classes = [Symbol, Hash, HashWithIndifferentAccess]
end
end

0 comments on commit 8faa80d

Please sign in to comment.