Skip to content

Commit d3c268e

Browse files
authored
Merge pull request #1011 from tka5/add-create-table-with-timestamp-exclude-file
Add the other auto generated migration file of ActiveStorage to `Exclude` files of `Rails/CreateTableWithTimestamps`
2 parents 4f6a3f6 + 8b763b0 commit d3c268e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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][])

config/default.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,10 @@ Rails/CreateTableWithTimestamps:
275275
- db/migrate/*.rb
276276
Exclude:
277277
# Respect the `active_storage_variant_records` table of `*_create_active_storage_tables.active_storage.rb`
278+
# and `*_create_active_storage_variant_records.active_storage.rb`
278279
# auto-generated by `bin/rails active_storage:install` even if `created_at` is not specified.
279280
- db/migrate/*_create_active_storage_tables.active_storage.rb
281+
- db/migrate/*_create_active_storage_variant_records.active_storage.rb
280282

281283
Rails/Date:
282284
Description: >-

0 commit comments

Comments
 (0)