From ba674be2fc943c0c7ec8482b14f57354d9cfddb7 Mon Sep 17 00:00:00 2001 From: Armin Kirchner Date: Wed, 30 Jul 2025 09:50:15 +0200 Subject: [PATCH] chore: Enable Rubocop for migrations Rubocop gives valuable information about issues in migration. New migrations should be checked by the linter. --- .rubocop.yml | 1 + .rubocop_todo.yml | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index f306664b8..d508c32d3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -19,6 +19,7 @@ inherit_from: AllCops: UseCache: True NewCops: enable + MigratedSchemaVersion: 20240924144745 Exclude: - 'bin/*' - 'db/*schema.rb' diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index e61b28410..e0ff823e9 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -5,17 +5,6 @@ Layout/LineLength: Max: 140 -# We don't want to change previous migrations... -# -Rails/CreateTableWithTimestamps: - Enabled: false - -Rails/BulkChangeTable: - Enabled: false - -Rails/ThreeStateBooleanColumn: - Enabled: false - # The models need to be fixed anyway # Rails/UniqueValidationWithoutIndex: