mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-11-28 00:20:26 +08:00
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>
10 lines
231 B
Ruby
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
|