hensei-api/db/migrate/20230820113900_add_nicknames_to_weapons.rb
Justin Edmund 1646f3d555
Update item search with better fallbacks and nicknames (#122)
* Add migrations for nicknames

* Rename migrations to be after last migration

* Migrate database

* Update search in models

* Search against nickname columns
* Add dictionary search to EN search so its not only trigrams
2023-08-20 00:46:25 -07:00

6 lines
298 B
Ruby

class AddNicknamesToWeapons < ActiveRecord::Migration[7.0]
def change
add_column :weapons, :nicknames_en, :string, array: true, default: [], null: false, if_not_exists: true
add_column :weapons, :nicknames_jp, :string, array: true, default: [], null: false, if_not_exists: true
end
end