Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20161006104309_add_state_to_environment.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ccb546654f988220a834278e8c56784fa3dec924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class AddStateToEnvironment < ActiveRecord::Migration
  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