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

20170508153950_add_not_null_contraints_to_ci_variables.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2a0c7132bfd6a223e81b0c9c18f12927a29486a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class AddNotNullContraintsToCiVariables < ActiveRecord::Migration[4.2]
  DOWNTIME = false

  def up
    change_column(:ci_variables, :key, :string, null: false)
    change_column(:ci_variables, :project_id, :integer, null: false)
  end

  def down
    # no op
  end
end