diaspora/db/migrate/20131017093025_create_post_reports.rb
Lukas Matt 5c9a3aaf3e Added post report feature
You can report a single post by clicking the correct icon in the controler section

Workflow:
* Report a post as offensive
* Trigger alerts to every pod-admin
* Pod-admin can review it in the admin interface
* Delete the post or mark it as reviewed
2014-01-14 15:00:55 -05:00

13 lines
306 B
Ruby

class CreatePostReports < ActiveRecord::Migration
def change
create_table :post_reports do |t|
t.integer :post_id, :null => false
t.string :user_id
t.boolean :reviewed, :default => false
t.text :text
t.timestamps
end
add_index :post_reports, :post_id
end
end