hensei-api/db/migrate/20251202123526_add_promotions_to_weapons_and_summons.rb

9 lines
364 B
Ruby

class AddPromotionsToWeaponsAndSummons < ActiveRecord::Migration[8.0]
def change
add_column :weapons, :promotions, :integer, array: true, default: [], null: false
add_column :summons, :promotions, :integer, array: true, default: [], null: false
add_index :weapons, :promotions, using: :gin
add_index :summons, :promotions, using: :gin
end
end