Fix for the deprecation warning and the migration error:
bundle exec rails db:migrate
2022-02-23T11:44:41 [W|app|] DEPRECATION WARNING: [] is deprecated and will be removed from Rails 6.2 (Use configs_for) (called from dynflow_persistence atforeman61/lib/tasks/dynflow.rake:18)
rails aborted!
NoMethodError: undefined method `gsub' for nil:NilClass
lib/tasks/dynflow.rake:18:in `dynflow_persistence'
lib/tasks/dynflow.rake:23:in `block (2 levels) in <main>'
lib/tasks/dynflow.rake:42:in `block (2 levels) in <main>'
Tasks: TOP => dynflow:migrate
PR for upcoming 6.1 rails upgrade: https://github.com/theforeman/foreman/pull/9117
Fix for the deprecation warning and the migration error: