525edec78b
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
9 lines
188 B
Ruby
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
|