gitlab-org--gitlab-foss/db/migrate/20190623212503_add_cluster_id_to_deployments.rb
Thong Kuah 525edec78b Add cluster_id to deployments table as an FK
We nullify when cluster is deleted as we want to keep the deployment
record around.

Add cluster as an optional association

We will have only cluster for deployments where the build deploys to a
kubernetes cluster
2019-06-27 17:28:48 +12:00

9 lines
188 B
Ruby

# frozen_string_literal: true
class AddClusterIdToDeployments < ActiveRecord::Migration[5.1]
DOWNTIME = false
def change
add_column :deployments, :cluster_id, :integer
end
end