This allows VmHosts to describe what architecture they are, as well as allow Vms to specify the target architecture.
16 lines
271 B
Ruby
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
|