/config/migrations/017_create_fulltext_indexes.rb
https://bitbucket.org/thrabal/smartlib · Ruby · 12 lines · 10 code · 2 blank · 0 comment · 0 complexity · a4c92fabaeeba84b8c3c60300674fe19 MD5 · raw file
- Sequel.migration do
- up do
- add_index :books_search, :search_title, :type => :full_text
- add_index :authors_search, :search_name, :type => :full_text
- end
- down do
- drop_index :authors_search, :search_name
- drop_index :books_search, :search_title
- end
- end