mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
6 lines
201 B
Ruby
6 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
|