2018-11-20 20:47:30 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
|
|
|
|
# for more information on how to write migrations for GitLab.
|
|
|
|
|
2019-10-12 21:52:04 +05:30
|
|
|
class AddNamespacePerEnvironmentFlagToClusters < ActiveRecord::Migration[5.1]
|
2018-11-20 20:47:30 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2019-10-12 21:52:04 +05:30
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2018-11-20 20:47:30 +05:30
|
|
|
def up
|
2020-04-08 14:13:33 +05:30
|
|
|
add_column_with_default :clusters, :namespace_per_environment, :boolean, default: false
|
2018-11-20 20:47:30 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2019-10-12 21:52:04 +05:30
|
|
|
remove_column :clusters, :namespace_per_environment
|
2018-11-20 20:47:30 +05:30
|
|
|
end
|
|
|
|
end
|