Skip to content

Commit 4a95320

Browse files
authored
chore: Enable Rubocop for migrations (#2092)
Rubocop gives valuable information about issues in migration. New migrations should be checked by the linter.
1 parent 4c464eb commit 4a95320

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
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: 20240924144745
2223
Exclude:
2324
- 'bin/*'
2425
- 'db/*schema.rb'

.rubocop_todo.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@
55
Layout/LineLength:
66
Max: 140
77

8-
# We don't want to change previous migrations...
9-
#
10-
Rails/CreateTableWithTimestamps:
11-
Enabled: false
12-
13-
Rails/BulkChangeTable:
14-
Enabled: false
15-
16-
Rails/ThreeStateBooleanColumn:
17-
Enabled: false
18-
198
# The models need to be fixed anyway
209
#
2110
Rails/UniqueValidationWithoutIndex:

0 commit comments

Comments
 (0)