add game_id to raids
This commit is contained in:
parent
5597cab95c
commit
cd14c923ac
4 changed files with 9 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ module Api
|
|||
}
|
||||
end
|
||||
|
||||
fields :slug, :level, :element
|
||||
fields :slug, :level, :element, :game_id
|
||||
|
||||
association :group, blueprint: RaidGroupBlueprint, view: :flat
|
||||
end
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ module Api
|
|||
end
|
||||
|
||||
def raid_params
|
||||
params.require(:raid).permit(:name_en, :name_jp, :level, :element, :slug, :group_id)
|
||||
params.require(:raid).permit(:name_en, :name_jp, :level, :element, :slug, :group_id, :game_id)
|
||||
end
|
||||
|
||||
def apply_filters(scope)
|
||||
|
|
|
|||
5
db/migrate/20260106102045_add_game_id_to_raids.rb
Normal file
5
db/migrate/20260106102045_add_game_id_to_raids.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddGameIdToRaids < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_column :raids, :game_id, :integer
|
||||
end
|
||||
end
|
||||
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2026_01_05_053753) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2026_01_06_102045) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "btree_gin"
|
||||
enable_extension "pg_catalog.plpgsql"
|
||||
|
|
@ -755,6 +755,7 @@ ActiveRecord::Schema[8.0].define(version: 2026_01_05_053753) do
|
|||
t.integer "element"
|
||||
t.string "slug"
|
||||
t.uuid "group_id"
|
||||
t.integer "game_id"
|
||||
end
|
||||
|
||||
create_table "skill_effects", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||
|
|
|
|||
Loading…
Reference in a new issue