1
0
Fork 0
forked from fedi/mastodon
mastodon/spec/fabricators/notification_fabricator.rb
alpaca-tc 05b72368ed 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.
2017-05-06 21:55:40 +02:00

5 lines
79 B
Ruby

Fabricator(:notification) do
activity_id 1
activity_type 'Favourite'
end