blob: 415dff9a07679911f4bc331f03d10d2e27ed3dbc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
class AddSearchIndexToTags < ActiveRecord::Migration[5.0]
def up
execute 'CREATE INDEX hashtag_search_index ON tags USING gin(to_tsvector(\'simple\', tags.name));'
end
def down
remove_index :tags, name: :hashtag_search_index
end
end
|