Add index to extension column in TopicLink.

This commit is contained in:
Jakub Macina 2017-06-20 13:01:31 +02:00
parent eaf46431d4
commit 67ce4b70a6
1 changed files with 1 additions and 0 deletions

View File

@ -1,5 +1,6 @@
class AddExtensionToTopicLinks < ActiveRecord::Migration
def change
add_column :topic_links, :extension, :string, limit: 5
add_index :topic_links, :extension
end
end