discourse/db/migrate/20190508141327_create_reviewable_claimed_topics.rb

13 lines
342 B
Ruby
Raw Normal View History

2019-05-13 09:55:44 +08:00
# 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