Files
ubicloud/migrate/20250119_add_vm_host_cpus.rb
Maciek Sarnowicz e646d7b551 Add VmHostCpu
To be able to allocate cpus to each of the host, we want to create a
record for each VmHost's CPU which tracks its availability.
2025-01-19 08:53:54 -08:00

15 lines
375 B
Ruby

# frozen_string_literal: true
Sequel.migration do
change do
create_table :vm_host_cpu do
foreign_key :vm_host_id, :vm_host, type: :uuid, null: false
Integer :cpu_number, null: false
Boolean :spdk, null: false
foreign_key :vm_host_slice_id, :vm_host_slice, type: :uuid, null: true
primary_key [:vm_host_id, :cpu_number]
end
end
end