2019-08-07 04:40:29 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddEnvironmentIdToClustersKubernetesNamespaces < ActiveRecord::Migration[5.1]
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def change
|
2019-09-13 18:06:03 +00:00
|
|
|
# rubocop:disable Migration/AddReference
|
2019-08-07 04:40:29 +00:00
|
|
|
add_reference :clusters_kubernetes_namespaces, :environment,
|
|
|
|
index: true, type: :bigint, foreign_key: { on_delete: :nullify }
|
2019-09-13 18:06:03 +00:00
|
|
|
# rubocop:enable Migration/AddReference
|
2019-08-07 04:40:29 +00:00
|
|
|
end
|
|
|
|
end
|