discourse/db/migrate/20140910130155_create_topic...

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

9 lines
237 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class CreateTopicUserIndex < ActiveRecord::Migration[4.2]
def change
# seems to be the most effective for joining into topics
add_index :topic_users, [:user_id, :topic_id], unique: true
end
end