PERF: add 'lower(title)' index on topics
This commit is contained in:
parent
131ae8486b
commit
d56e91f44f
|
@ -0,0 +1,9 @@
|
|||
class AddLowerTitleIndexOnTopics < ActiveRecord::Migration
|
||||
def up
|
||||
execute "CREATE INDEX index_topics_on_lower_title ON topics (LOWER(title))"
|
||||
end
|
||||
|
||||
def down
|
||||
execute "DROP INDEX index_topics_on_lower_title"
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue