discourse/db/migrate/20190508141327_create_revie...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
342 B
Ruby
Raw Normal View History

2019-05-12 21:55:44 -04: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