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