Skip to content

Commit 912fd46

Browse files
authored
chore: Enable Rubocop for migrations (#3045)
Rubocop gives valuable information about issues in migration. New migrations should be checked by the linter.
1 parent bfab1ec commit 912fd46

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ inherit_from:
1919
AllCops:
2020
UseCache: True
2121
NewCops: enable
22+
MigratedSchemaVersion: 20240930231316
2223
Exclude:
2324
- 'bin/*'
2425
- 'db/*schema.rb'

.rubocop_todo.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,6 @@ Metrics/CyclomaticComplexity:
2222
Metrics/PerceivedComplexity:
2323
Max: 25
2424

25-
# We don't want to change previous migrations...
26-
#
27-
Rails/CreateTableWithTimestamps:
28-
Enabled: false
29-
30-
Rails/BulkChangeTable:
31-
Enabled: false
32-
33-
Rails/ReversibleMigration:
34-
Enabled: false
35-
36-
Rails/NotNullColumn:
37-
Enabled: false
38-
39-
Rails/ThreeStateBooleanColumn:
40-
Enabled: false
41-
4225
# The models need to be fixed anyway
4326
#
4427
Rails/UniqueValidationWithoutIndex:

0 commit comments

Comments
 (0)