ubicloud/migrate/20251023_vm_init_script.rb
Jeremy Evans 452fafb45e Add migration for vm_init_script table
This is a separate table to avoid bloating the vm table with
a potentially large init script. The init script is only needed
in a single place.

Co-authored-by: Daniel Farina <daniel@ubicloud.com>
2025-10-28 02:42:19 +09:00

10 lines
231 B
Ruby

# frozen_string_literal: true
Sequel.migration do
change do
create_table(:vm_init_script) do
foreign_key :id, :vm, type: :uuid, primary_key: true
column :script, String, size: 2000, null: false
end
end
end