debian-mirror-gitlab/db/migrate/20161006104309_add_state_to_environment.rb
2019-02-15 15:39:39 +05:30

16 lines
312 B
Ruby

class AddStateToEnvironment < ActiveRecord::Migration[4.2]
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