2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddEnvironmentIdToClustersKubernetesNamespaces < ActiveRecord::Migration[5.1]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def change
|
2019-12-04 20:38:33 +05:30
|
|
|
# rubocop:disable Migration/AddReference
|
2019-10-12 21:52:04 +05:30
|
|
|
add_reference :clusters_kubernetes_namespaces, :environment,
|
|
|
|
index: true, type: :bigint, foreign_key: { on_delete: :nullify }
|
2019-12-04 20:38:33 +05:30
|
|
|
# rubocop:enable Migration/AddReference
|
2019-10-12 21:52:04 +05:30
|
|
|
end
|
|
|
|
end
|