2018-12-23 12:14:25 +05:30
|
|
|
class AddStateToEnvironment < ActiveRecord::Migration[4.2]
|
2016-11-03 12:29:30 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_column_with_default(:environments, :state, :string, default: :available)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:environments, :state)
|
|
|
|
end
|
|
|
|
end
|