DEV: Ignore foreign key migration in rubocop

We don't want foreign keys in migrations going forward as they can be
expensive for large tables. However, we shouldn't be changing old
migrations, so we're having rubocop ignore it in this plugin for now.
This commit is contained in:
Justin DiRose 2020-10-20 11:27:32 -05:00
parent 0bae17dcb6
commit 86c8daf693
No known key found for this signature in database
GPG Key ID: 4B811FB264021800
1 changed files with 3 additions and 0 deletions

View File

@ -3,3 +3,6 @@ AllCops:
- 'gems/**/*'
inherit_gem:
rubocop-discourse: default.yml
Discourse/NoAddReferenceOrAliasesActiveRecordMigration:
Enabled: false