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

20190731141037_change_environments_state_default.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b58315b59801b5490351fccd759f51293e41e2f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class ChangeEnvironmentsStateDefault < ActiveRecord::Migration[5.2]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    change_column_default(:environments, :state, 'created')
  end

  def down
    change_column_default(:environments, :state, 'available')
  end
end