Adds Ultimate Mastery and renames Master Level (#78)
This commit is contained in:
parent
cb92210ece
commit
ebeaf64f74
5 changed files with 24 additions and 5 deletions
|
|
@ -17,7 +17,9 @@ module Api
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
fields :granblue_id, :row, :ml, :order, :accessory, :accessory_type
|
fields :granblue_id, :row, :order,
|
||||||
|
:master_level, :ultimate_mastery,
|
||||||
|
:accessory, :accessory_type
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,9 @@ module Api
|
||||||
include_view :characters
|
include_view :characters
|
||||||
include_view :job_skills
|
include_view :job_skills
|
||||||
|
|
||||||
fields :local_id, :description, :charge_attack, :button_count, :turn_count, :chain_count
|
fields :local_id, :description, :charge_attack,
|
||||||
|
:button_count, :turn_count, :chain_count,
|
||||||
|
:master_level, :ultimate_mastery
|
||||||
|
|
||||||
association :accessory,
|
association :accessory,
|
||||||
blueprint: JobAccessoryBlueprint
|
blueprint: JobAccessoryBlueprint
|
||||||
|
|
|
||||||
6
db/migrate/20230315103026_add_ultimate_mastery.rb
Normal file
6
db/migrate/20230315103026_add_ultimate_mastery.rb
Normal file
|
|
@ -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
|
||||||
7
db/migrate/20230315103037_rename_ml_to_master_level.rb
Normal file
7
db/migrate/20230315103037_rename_ml_to_master_level.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
class RenameMlToMasterLevel < ActiveRecord::Migration[7.0]
|
||||||
|
def change
|
||||||
|
rename_column :parties, :ml, :master_level
|
||||||
|
rename_column :jobs, :ml, :master_level
|
||||||
|
change_column_null :jobs, :master_level, false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema[7.0].define(version: 2023_03_15_095656) do
|
ActiveRecord::Schema[7.0].define(version: 2023_03_15_103037) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "btree_gin"
|
enable_extension "btree_gin"
|
||||||
enable_extension "pg_trgm"
|
enable_extension "pg_trgm"
|
||||||
|
|
@ -154,7 +154,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_15_095656) do
|
||||||
t.integer "proficiency1"
|
t.integer "proficiency1"
|
||||||
t.integer "proficiency2"
|
t.integer "proficiency2"
|
||||||
t.string "row"
|
t.string "row"
|
||||||
t.boolean "ml", default: false
|
t.boolean "master_level", default: false, null: false
|
||||||
|
t.boolean "ultimate_mastery", default: false, null: false
|
||||||
t.integer "order"
|
t.integer "order"
|
||||||
t.uuid "base_job_id"
|
t.uuid "base_job_id"
|
||||||
t.string "granblue_id"
|
t.string "granblue_id"
|
||||||
|
|
@ -213,7 +214,8 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_15_095656) do
|
||||||
t.integer "element"
|
t.integer "element"
|
||||||
t.integer "weapons_count"
|
t.integer "weapons_count"
|
||||||
t.uuid "job_id"
|
t.uuid "job_id"
|
||||||
t.integer "ml"
|
t.integer "master_level"
|
||||||
|
t.integer "ultimate_mastery"
|
||||||
t.uuid "skill1_id"
|
t.uuid "skill1_id"
|
||||||
t.uuid "skill2_id"
|
t.uuid "skill2_id"
|
||||||
t.uuid "skill3_id"
|
t.uuid "skill3_id"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue