Skip to content

Commit

Permalink
Add the other auto generated migration file of ActiveStorage
Browse files Browse the repository at this point in the history
to `Exclude` files of `Rails/CreateTableWithTimestamps`
  • Loading branch information
tka5 committed May 22, 2023
1 parent 4f6a3f6 commit 8b763b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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][])
2 changes: 2 additions & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >-
Expand Down

0 comments on commit 8b763b0

Please sign in to comment.