hensei-api/db/migrate/20250115100327_remove_recruits_id_from_weapons.rb

6 lines
217 B
Ruby

class RemoveRecruitsIdFromWeapons < ActiveRecord::Migration[7.0]
def change
remove_column :weapons, :recruits_id, :uuid
remove_index :weapons, :recruits_id if index_exists?(:weapons, :recruits_id)
end
end