hensei-api/db/migrate/20250302080231_create_weapon_skills.rb
Justin Edmund 7b88932e2c Add migrations for skill tables
These tables allow us to store data about:
* Character and Weapon charge attacks
* Character active and support skills
* Weapon skills
* Summon calls
* Summon auras and subauras
2025-03-02 16:24:24 -08:00

19 lines
801 B
Ruby

class CreateWeaponSkills < ActiveRecord::Migration[8.0]
def change
create_table :weapon_skills, id: :uuid do |t|
t.string :weapon_granblue_id, null: false
t.references :skill, type: :uuid, null: false
t.integer :position, null: false # 1, 2, 3 for skill slots
t.string :skill_modifier # Modifier like "Might", "Majesty"
t.string :skill_series # Series like "Ironflame", "Hoarfrost"
t.string :skill_size # Size like "Small", "Medium", "Big", "Massive"
t.integer :unlock_level # level when skill unlocked
t.timestamps null: false
end
add_foreign_key :weapon_skills, :skills
add_index :weapon_skills, %i[weapon_granblue_id position]
add_index :weapon_skills, :weapon_granblue_id
add_index :weapon_skills, :skill_series
end
end