Create the ability to send reports to moderators
- Limited to Builders+ -- Moderator+ can also use as they may be too busy ATM - Only on users, comments, and forum posts - Multiple reports can be generated per instance - Primarily posts to a moderator-only topic for viewability - Secondarily has a table for searchability -- Viewable only by moderators
This commit is contained in:
12
db/migrate/20200117220602_create_moderation_reports.rb
Normal file
12
db/migrate/20200117220602_create_moderation_reports.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateModerationReports < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :moderation_reports do |t|
|
||||
t.timestamps
|
||||
t.references :model, polymorphic: true, null: false
|
||||
t.integer :creator_id, null: false
|
||||
t.text :reason, null: false
|
||||
end
|
||||
|
||||
add_index :moderation_reports, :creator_id
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user