mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -0,0 +1,9 @@
|
||||
class DropQueuedPostIdFromUserActions < ActiveRecord::Migration[5.2]
|
||||
def up
|
||||
remove_column :user_actions, :queued_post_id
|
||||
end
|
||||
|
||||
def down
|
||||
add_column :user_actions, :queued_post_id, :integer
|
||||
end
|
||||
end
|
||||
5
db/post_migrate/20190123171817_drop_queued_posts.rb
Normal file
5
db/post_migrate/20190123171817_drop_queued_posts.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class DropQueuedPosts < ActiveRecord::Migration[5.2]
|
||||
def up
|
||||
drop_table :queued_posts
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user