hensei-api/db/migrate/20251215122402_move_gacha_from_characters_to_weapons.rb
Justin Edmund 056aa3676f move gacha from characters to weapons
weapons have gacha boolean now, characters don't
2025-12-15 12:46:43 -08:00

13 lines
452 B
Ruby

# frozen_string_literal: true
class MoveGachaFromCharactersToWeapons < ActiveRecord::Migration[8.0]
def change
# Add gacha boolean to weapons table
add_column :weapons, :gacha, :boolean, default: false, null: false
add_index :weapons, :gacha
# Remove gacha_available from characters table
remove_index :characters, :gacha_available
remove_column :characters, :gacha_available, :boolean, default: true, null: false
end
end