Skip to content

Commit d8bb510

Browse files
authored
Merge pull request #1444 from koic/fix_an_incorrect_behavior_when_using_migrated_schema_version
Fix an incorrect behavior when using `AllCops: MigratedSchemaVersion`
2 parents 405faca + d40c943 commit d8bb510

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* [#1444](https://github.com/rubocop/rubocop-rails/pull/1444): Fix an incorrect behavior when using `AllCops: MigratedSchemaVersion`. ([@koic][])

config/default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ AllCops:
2828
# By specifying `MigratedSchemaVersion` option, migration files that have been migrated can be ignored.
2929
# When `MigratedSchemaVersion: '20241231000000'` is set. Migration files lower than or equal to '20250101000000' will be ignored.
3030
# For example, this is the timestamp in db/migrate/20250101000000_create_articles.rb.
31-
MigratedSchemaVersion: ~
31+
MigratedSchemaVersion: '19700101000000' # NOTE: Used as a sentinel value for the UNIX epoch time.
3232

3333
Lint/NumberConversion:
3434
# Add Rails' duration methods to the ignore list for `Lint/NumberConversion`

0 commit comments

Comments
 (0)