diff --git a/app/blueprints/api/v1/job_blueprint.rb b/app/blueprints/api/v1/job_blueprint.rb index f58e3e1..ba2c9f1 100644 --- a/app/blueprints/api/v1/job_blueprint.rb +++ b/app/blueprints/api/v1/job_blueprint.rb @@ -17,7 +17,9 @@ module Api ] end - fields :granblue_id, :row, :master_level, :order, :accessory, :accessory_type + fields :granblue_id, :row, :order, + :master_level, :ultimate_mastery, + :accessory, :accessory_type end end end diff --git a/app/blueprints/api/v1/party_blueprint.rb b/app/blueprints/api/v1/party_blueprint.rb index 253d57e..5b26778 100644 --- a/app/blueprints/api/v1/party_blueprint.rb +++ b/app/blueprints/api/v1/party_blueprint.rb @@ -71,7 +71,7 @@ module Api fields :local_id, :description, :charge_attack, :button_count, :turn_count, :chain_count, - :master_level + :master_level, :ultimate_mastery association :accessory, blueprint: JobAccessoryBlueprint diff --git a/db/migrate/20230315103026_add_ultimate_mastery.rb b/db/migrate/20230315103026_add_ultimate_mastery.rb new file mode 100644 index 0000000..149a2a1 --- /dev/null +++ b/db/migrate/20230315103026_add_ultimate_mastery.rb @@ -0,0 +1,6 @@ +class AddUltimateMastery < ActiveRecord::Migration[7.0] + def change + add_column :parties, :ultimate_mastery, :integer, null: true + add_column :jobs, :ultimate_mastery, :boolean, default: false, null: false + end +end