discourse/db/migrate/20190508141327_create_reviewable_claimed_topics.rb
Robin Ward b380ed5282 FEATURE: Claim Reviewables by Topic
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.
2019-05-09 13:40:36 -04:00

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