Skip to content

Replace default_value_for on ProjectFeature

Max Orefice requested to merge morefice/remove-default-values-5 into master

Ref: #378997 (closed)

What does this MR do and why?

It replaces the usage of default_values_for on ProjectFeature model with a native Rails feature because that gem is unmaintained and it's blocking us from upgrading to Rails 7.

Used a similar technique implemented in !103787 (merged) to deal with existing records and making sure we set correctly their default value.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Max Orefice

Merge request reports

Loading