mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 01:22:36 +08:00
7 lines
206 B
Ruby
7 lines
206 B
Ruby
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
|