20161006104309_add_state_to_environment.rb 304 Bytes
Newer Older
1 2 3
class AddStateToEnvironment < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

4 5
  disable_ddl_transaction!

6 7
  DOWNTIME = false

8 9 10 11 12 13
  def up
    add_column_with_default(:environments, :state, :string, default: :opened)
  end

  def down
    remove_column(:environments, :state)
14 15
  end
end