mirror of
https://github.com/discourse/discourse.git
synced 2025-02-10 21:34:50 +00:00
This is a feature that used to be present in discourse-assign but is much easier to implement in core. It also allows a topic to be assigned without it claiming for review and vice versa and allows it to work with category group reviewers.
11 lines
311 B
Ruby
11 lines
311 B
Ruby
class CreateReviewableClaimedTopics < ActiveRecord::Migration[5.2]
|
|
def change
|
|
create_table :reviewable_claimed_topics do |t|
|
|
t.integer :user_id, null: false
|
|
t.integer :topic_id, null: false
|
|
t.timestamps
|
|
end
|
|
add_index :reviewable_claimed_topics, :topic_id, unique: true
|
|
end
|
|
end
|