hensei-api/db/migrate/20230311073808_create_character_support_skills.rb
Justin Edmund c8eb9187d6 Add migrations for character skills
Adds new tables for:
* Character skills
* Character charge attacks
* Character support skills
* Ability effects

Also adds flags on GridCharacter for whether an ability is enabled or disabled in full auto
2023-03-11 01:19:26 -08:00

21 lines
674 B
Ruby

class CreateCharacterSupportSkills < ActiveRecord::Migration[7.0]
def change
create_table :character_support_skills, id: :uuid, default: -> { "gen_random_uuid()" } do |t|
t.references :character, type: :uuid
t.string :name_en, unique: true, null: false
t.string :name_jp, unique: true, null: false
t.string :description_en, unique: true, null: false
t.string :description_jp, unique: true, null: false
t.integer :position, null: false
t.integer :obtained_at
t.boolean :emp, default: false, null: false
t.boolean :transcendence, default: false, null: false
t.uuid :effects, array: true
end
end
end