Files
ubicloud/migrate/20250623_add_services_lb_to_kubernetes_cluster.rb
Eren Başak 06fbaab3ba Add FK Reference from Kubernetes Cluster to Services Load Balancer
This was a technical debt left from the launch of CCM for automatic
service to LB port mapping. We were using name and project queries
to reference the load balancer created for serving user services.

The field will be backfilled manually after deployment.
2025-06-27 15:12:38 +03:00

10 lines
200 B
Ruby

# frozen_string_literal: true
Sequel.migration do
change do
alter_table(:kubernetes_cluster) do
add_foreign_key :services_lb_id, :load_balancer, type: :uuid, null: true
end
end
end