hensei-api/app/blueprints/api/v1/weapon_key_blueprint.rb
Justin Edmund 31e05179e2
Add granblue_id to WeaponKeys (#77)
* Small Rails 7 configuration changes (#72)

* Remove log call

* Show EMP skills for Row 5 classes

Row 4 EMP skills were not showing up, so you couldn't set Rage IV on Viking, for example

* Allow adding EMP skills from prior rows to team

We let you search but didn't fix the server-side validation check for skills

* Add `granblue_id` column to WeaponKeys table

This should have a `NOT NULL` constraint, but due to existing data it is nullable until we can update all environments with values.

* Add granblue_id to WeaponKeyBlueprint

* Migrate database
2023-03-16 08:35:28 -07:00

16 lines
292 B
Ruby

# frozen_string_literal: true
module Api
module V1
class WeaponKeyBlueprint < ApiBlueprint
field :name do |key|
{
en: key.name_en,
ja: key.name_jp
}
end
fields :granblue_id, :slug, :series, :slot, :group, :order
end
end
end