Files
ubicloud/migrate/20241204_vm_add_vcpus_memory.rb
Maciek Sarnowicz 20108de60e Migrations to add vcpus & memory_gib to Vm
Previously we used formulas to calculate number of vcpus & amount of
memory for a VM based on number of cores it uses. Since changing
formulas doesn't affect already created VMs, in this PR we add the
fields which enable us to materialize these values.
2024-12-11 16:34:54 -08:00

11 lines
202 B
Ruby

# frozen_string_literal: true
Sequel.migration do
change do
alter_table(:vm) do
add_column :vcpus, :integer, null: true
add_column :memory_gib, :integer, null: true
end
end
end