2016-10-06 07:10:50 -04:00
|
|
|
class AddStateToEnvironment < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
2016-10-06 07:45:45 -04:00
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2016-10-06 07:10:50 -04:00
|
|
|
DOWNTIME = false
|
|
|
|
|
2016-10-06 07:45:45 -04:00
|
|
|
def up
|
2016-10-17 06:45:31 -04:00
|
|
|
add_column_with_default(:environments, :state, :string, default: :available)
|
2016-10-06 07:45:45 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:environments, :state)
|
2016-10-06 07:10:50 -04:00
|
|
|
end
|
|
|
|
end
|