Files
ubicloud/migrate/20231014_arm64.rb
Daniel Farina 1c4fe71715 Add CPU architecture migration
This allows VmHosts to describe what architecture they are, as well as
allow Vms to specify the target architecture.
2023-11-06 10:55:51 -08:00

16 lines
271 B
Ruby

# frozen_string_literal: true
Sequel.migration do
change do
create_enum(:arch, %w[x64 arm64])
alter_table(:vm_host) do
add_column :arch, :arch
end
alter_table(:vm) do
add_column :arch, :arch, default: "x64", null: false
end
end
end