2018-06-01 21:39:24 +00:00
|
|
|
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
|
|
|
|
# for more information on how to write migrations for GitLab.
|
|
|
|
|
|
|
|
class AddDeployStrategyToProjectAutoDevops < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
# Set this constant to true if this migration requires downtime.
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2018-06-06 17:14:39 +00:00
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2018-06-07 16:11:08 +00:00
|
|
|
add_column_with_default :project_auto_devops, :deploy_strategy, :integer, default: 0, allow_null: false
|
2018-06-06 17:14:39 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :project_auto_devops, :deploy_strategy
|
2018-06-01 21:39:24 +00:00
|
|
|
end
|
|
|
|
end
|