Rename ml to master level
This commit is contained in:
parent
8ff5a5a1e9
commit
71a217d33f
3 changed files with 12 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ module Api
|
|||
]
|
||||
end
|
||||
|
||||
fields :granblue_id, :row, :ml, :order, :accessory, :accessory_type
|
||||
fields :granblue_id, :row, :master_level, :order, :accessory, :accessory_type
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ module Api
|
|||
end
|
||||
|
||||
view :jobs do
|
||||
|
||||
association :job,
|
||||
blueprint: JobBlueprint
|
||||
include_view :job_skills
|
||||
|
|
@ -68,7 +69,9 @@ module Api
|
|||
include_view :characters
|
||||
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
|
||||
|
||||
association :accessory,
|
||||
blueprint: JobAccessoryBlueprint
|
||||
|
|
|
|||
7
db/migrate/20230315103037_rename_master_level.rb
Normal file
7
db/migrate/20230315103037_rename_master_level.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class RenameMasterLevel < 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
|
||||
Loading…
Reference in a new issue