The code powering m.abunchtell.com https://m.abunchtell.com
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

10 wiersze
250 B

  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