This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/db/migrate/20140910130155_create_topic_user_index.rb

7 lines
201 B
Ruby

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