mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 00:50:14 -04:00
Revert "Add index on topic_links post_id. Remove a redundant index." Doesn't always work.
This commit is contained in:
parent
5f94c29ada
commit
aa4a1fa39b
1 changed files with 0 additions and 13 deletions
|
@ -1,13 +0,0 @@
|
|||
class AddAndRemoveIndexesOnTopicLinks < ActiveRecord::Migration
|
||||
def up
|
||||
# Index (topic_id) is a subset of (topic_id, post_id, url)
|
||||
remove_index :topic_links, :topic_id
|
||||
|
||||
add_index :topic_links, :post_id
|
||||
end
|
||||
|
||||
def down
|
||||
remove_index :topic_links, :post_id
|
||||
add_index :topic_links, :topic_id
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue