mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 06:53:44 +08:00
13 lines
342 B
Ruby
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
|