From 05b72368ed56f23e247d28c2798789f91bb096c5 Mon Sep 17 00:00:00 2001 From: alpaca-tc Date: Sun, 7 May 2017 04:55:40 +0900 Subject: Fixes slow query in notifications api (#2851) * Add inclusion validation for activity_type * When excluding all types with `WHERE NOT IN`, the query search all rows. --- spec/fabricators/notification_fabricator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/fabricators/notification_fabricator.rb') diff --git a/spec/fabricators/notification_fabricator.rb b/spec/fabricators/notification_fabricator.rb index 08e984904..b92af0683 100644 --- a/spec/fabricators/notification_fabricator.rb +++ b/spec/fabricators/notification_fabricator.rb @@ -1,4 +1,4 @@ Fabricator(:notification) do activity_id 1 - activity_type "MyString" + activity_type 'Favourite' end -- cgit