BigW Consortium Gitlab

20170508153950_add_not_null_contraints_to_ci_variables.rb 265 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
class AddNotNullContraintsToCiVariables < ActiveRecord::Migration
  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