From 671c8bd9cf9db2c1f48ddc2bc582c36ccd02d5ac Mon Sep 17 00:00:00 2001 From: fatkodima Date: Tue, 3 Sep 2024 19:05:58 +0300 Subject: [PATCH] Change `Rails/ApplicationRecord` to ignore migrations --- changelog/change_application_record_to_ignore_migrations.md | 1 + config/default.yml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog/change_application_record_to_ignore_migrations.md diff --git a/changelog/change_application_record_to_ignore_migrations.md b/changelog/change_application_record_to_ignore_migrations.md new file mode 100644 index 0000000000..59f8e2259d --- /dev/null +++ b/changelog/change_application_record_to_ignore_migrations.md @@ -0,0 +1 @@ +* [#1342](https://github.com/rubocop/rubocop-rails/issues/1342): Change `Rails/ApplicationRecord` to ignore migrations. ([@fatkodima][]) diff --git a/config/default.yml b/config/default.yml index 97b01498b0..74a0251182 100644 --- a/config/default.yml +++ b/config/default.yml @@ -212,7 +212,9 @@ Rails/ApplicationRecord: Enabled: true SafeAutoCorrect: false VersionAdded: '0.49' - VersionChanged: '2.5' + VersionChanged: '<>' + Exclude: + - db/**/*.rb Rails/ArelStar: Description: 'Enforces `Arel.star` instead of `"*"` for expanded columns.'