logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

20170322162804_add_search_index_to_tags.rb (250B)


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