hensei-api/db/migrate/20230529215259_add_raid_group_to_raids.rb
Justin Edmund 56ccbe3dbb
Support for Siero, raids rework and edit party rework (#96)
* Add guidebooks migration

* Implement business logic for reading Guidebooks

* Change to individual guidebook columns

* Properly output guidebook description

* Move to 1-index guidebooks

* Update party-related files for 1-index guidebooks

* Add tables for Siero

* Add raid groups table

* Update raid model

To belong to the RaidGroup class

* Update job class

To have many job skills

* Add endpoint for raid groups

* Update Raid blueprint with views

* Added down for creating table

* Add guidebooks flag and auto summon flag

* Guidebooks → RaidGroup
* Auto summon → Party

* Add views to Raid blueprint

* Add views and guidebook flag to RaidGroup blueprint

* Add auto summon and Raid view to Party blueprint
2023-06-18 02:07:57 -07:00

6 lines
223 B
Ruby

class AddRaidGroupToRaids < ActiveRecord::Migration[7.0]
def change
add_reference :raids, :group, null: true, to_table: 'raid_groups', type: :uuid
add_foreign_key :raids, :raid_groups, column: :group_id
end
end