Add and apply Rails/EnumHash rubocop rule

In rubocop-rails 2.26.0, support was added for Rails 7 syntax in the
Rails/EnumHash rule. We took this opportunity to ensure consistency
by converting all enums to hash with integer values. This format minimizes
the risk of data consistency issues in the database when adding new values.
This commit is contained in:
taitus
2024-10-08 16:47:04 +02:00
parent 3d4f78a424
commit c50452aec6
6 changed files with 8 additions and 5 deletions

View File

@@ -388,6 +388,9 @@ Rails/DynamicFindBy:
- find_by_slug_or_id!
- find_by_manager_login
Rails/EnumHash:
Enabled: true
Rails/EnumSyntax:
Enabled: true