debian-mirror-gitlab/db/migrate/20190712064021_add_namespace_per_environment_flag_to_clusters.rb

21 lines
570 B
Ruby
Raw Normal View History

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-05-24 23:13:21 +05:30
add_column_with_default :clusters, :namespace_per_environment, :boolean, default: false # rubocop:disable Migration/AddColumnWithDefault
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