From 86c8daf6930785406fab70a63dc2a2f35349556e Mon Sep 17 00:00:00 2001 From: Justin DiRose Date: Tue, 20 Oct 2020 11:27:32 -0500 Subject: [PATCH] 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. --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 65a20e9..7a86442 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,3 +3,6 @@ AllCops: - 'gems/**/*' inherit_gem: rubocop-discourse: default.yml + +Discourse/NoAddReferenceOrAliasesActiveRecordMigration: + Enabled: false