Files
ubicloud/migrate/20230720_add_storage_cap.rb
Hadi Moshayedi 6f90658885 Add storage size accounting
Learns available storage size at the vm host, and uses that to
allocate disk space to each VM. Also fails if not enough disk space
is remaining at the host.

Adds the following information to the vm_host table:
 * total_storage_gib
 * available_storage_gib
2023-07-20 12:54:15 -07:00

11 lines
204 B
Ruby

# frozen_string_literal: true
Sequel.migration do
change do
alter_table(:vm_host) do
add_column :total_storage_gib, Integer
add_column :available_storage_gib, Integer
end
end
end