mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
Add post_id index to topic_links
This commit is contained in:
parent
aa4a1fa39b
commit
82c88eec74
1 changed files with 9 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
class AddPostIdIndexOnTopicLinks < ActiveRecord::Migration
|
||||
def up
|
||||
add_index :topic_links, :post_id
|
||||
end
|
||||
|
||||
def down
|
||||
remove_index :topic_links, :post_id
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue