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

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