FEATURE: Add IgnoredUsersSummary daily job (#7144)

* FEATURE: Add `IgnoredUsersSummary` daily job

## Why?

This is part of the [Ability to ignore a user feature](https://meta.discourse.org/t/ability-to-ignore-a-user/110254/8).

We want to:

1. Send an automatic group PM that goes out to moderators
2. When {x} users have Ignored the same user, threshold defined by a site setting, default of 5
3. Only send this message every X days which is defined by another site setting
This commit is contained in:
Tarek Khalil
2019-03-14 22:51:43 +00:00
committed by GitHub
parent fb8bcd7469
commit bd6d31c9ec
6 changed files with 153 additions and 0 deletions

View File

@ -0,0 +1,5 @@
class AddSummarizedAtColumnToIgnoredUsersTable < ActiveRecord::Migration[5.2]
def change
add_column :ignored_users, :summarized_at, :datetime
end
end