mirror of
https://github.com/discourse/discourse.git
synced 2026-08-16 16:05:10 -05:00
FEATURE: New 'Reviewable' model to make reviewable items generic
Includes support for flags, reviewable users and queued posts, with REST API backwards compatibility. Co-Authored-By: romanrizzi <romanalejandro@gmail.com> Co-Authored-By: jjaffeux <j.jaffeux@gmail.com>
This commit is contained in:
co-authored by
romanrizzi
jjaffeux
parent
9a56b398a1
commit
b58867b6e9
@@ -0,0 +1,14 @@
|
||||
class CreateReviewableHistories < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :reviewable_histories do |t|
|
||||
t.integer :reviewable_id, null: false
|
||||
t.integer :reviewable_history_type, null: false
|
||||
t.integer :status, null: false
|
||||
t.integer :created_by_id, null: false
|
||||
t.json :edited, null: true
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :reviewable_histories, :reviewable_id
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user