Dynflow / dynflow

DYNamic workFLOW orchestration engine
http://dynflow.github.io
MIT License
121 stars 44 forks source link

Replace deprecated ActiveRecord::Base.configurations[] #410

Closed stejskalleos closed 2 years ago

stejskalleos commented 2 years ago

PR for upcoming 6.1 rails upgrade: https://github.com/theforeman/foreman/pull/9117

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
stejskalleos commented 2 years ago

Blocking https://github.com/theforeman/foreman/pull/9117

adamruzicka commented 2 years ago

Thank you @stejskalleos !