2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class CreateTopicUserIndex < ActiveRecord::Migration[4.2]
|
2014-09-10 09:03:59 -04:00
|
|
|
def change
|
|
|
|
# seems to be the most effective for joining into topics
|
|
|
|
add_index :topic_users, [:user_id, :topic_id], unique: true
|
|
|
|
end
|
|
|
|
end
|