hensei-api/db/migrate/20230529210259_add_raid_groups_table.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

16 lines
454 B
Ruby

class AddRaidGroupsTable < ActiveRecord::Migration[7.0]
def up
create_table :raid_groups, id: :uuid, default: -> { "gen_random_uuid()" } do |t|
t.string :name_en, null: false
t.string :name_jp, null: false
t.integer :difficulty
t.integer :order, null: false
t.integer :section, default: 1, null: false
t.boolean :extra, default: false, null: false
end
end
def down
drop_table :raid_groups
end
end