1
0
mirror of https://github.com/discourse/discourse.git synced 2025-03-07 03:39:34 +00:00
discourse/db/migrate/20190508141327_create_reviewable_claimed_topics.rb
2019-05-13 09:55:44 +08:00

13 lines
342 B
Ruby

# frozen_string_literal: true
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