The code powering m.abunchtell.com https://m.abunchtell.com
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

12 satır
376 B

  1. class MakeTagSearchCaseInsensitive < ActiveRecord::Migration[5.1]
  2. def up
  3. remove_index :tags, name: :hashtag_search_index
  4. execute 'CREATE INDEX hashtag_search_index ON tags (lower(name) text_pattern_ops);'
  5. end
  6. def down
  7. remove_index :tags, name: :hashtag_search_index
  8. execute 'CREATE INDEX hashtag_search_index ON tags (name text_pattern_ops);'
  9. end
  10. end