hensei-api/db/migrate/20230311073805_create_effects.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

32 lines
802 B
Ruby

class CreateEffects < ActiveRecord::Migration[7.0]
def change
create_table :effects, id: :uuid, default: -> { "gen_random_uuid()" } do |t|
t.string :name_en, null: false
t.string :name_jp, null: false
t.string :description_en, null: false
t.string :description_jp, null: false
t.integer :accuracy_value
t.string :accuracy_suffix
t.string :accuracy_comparator
t.jsonb :strength, array: true
# {
# "min": integer,
# "max": integer,
# "value": integer,
# "suffix": string
# }
t.integer :healing_cap
t.boolean :duration_indefinite, default: false, null: false
t.integer :duration_value
t.string :duration_unit
t.string :notes_en
t.string :notes_jp
end
end
end