2019-05-12 21:55:44 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-05-08 10:20:51 -04:00
|
|
|
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
|