From 8b763b03be826619f16a1d50b1068d4524ee1562 Mon Sep 17 00:00:00 2001 From: tka5 Date: Mon, 22 May 2023 13:56:49 +0900 Subject: [PATCH] Add the other auto generated migration file of ActiveStorage to `Exclude` files of `Rails/CreateTableWithTimestamps` --- .../change_add_create_table_with_timestamp_exclude_file.md | 1 + config/default.yml | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelog/change_add_create_table_with_timestamp_exclude_file.md diff --git a/changelog/change_add_create_table_with_timestamp_exclude_file.md b/changelog/change_add_create_table_with_timestamp_exclude_file.md new file mode 100644 index 0000000000..1dd0968996 --- /dev/null +++ b/changelog/change_add_create_table_with_timestamp_exclude_file.md @@ -0,0 +1 @@ +* [#1011](https://github.com/rubocop/rubocop-rails/pull/1011): Add `*_create_active_storage_variant_records.active_storage.rb` to `Rails/CreateTableWithTimestamps` exclude file list. ([@tka5][]) diff --git a/config/default.yml b/config/default.yml index 9eef0c67f2..1f19e191f6 100644 --- a/config/default.yml +++ b/config/default.yml @@ -275,8 +275,10 @@ Rails/CreateTableWithTimestamps: - db/migrate/*.rb Exclude: # Respect the `active_storage_variant_records` table of `*_create_active_storage_tables.active_storage.rb` + # and `*_create_active_storage_variant_records.active_storage.rb` # auto-generated by `bin/rails active_storage:install` even if `created_at` is not specified. - db/migrate/*_create_active_storage_tables.active_storage.rb + - db/migrate/*_create_active_storage_variant_records.active_storage.rb Rails/Date: Description: >-