Skip to content

Replace default_value_for on more models

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

Ref: #378997 (closed)

What does this MR do and why?

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

For enum we cannot use attributes as it conflicts with column name definition.

MR acceptance checklist

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

Merge request reports

Loading