Commit 38388338 authored by Z.J. van de Weg's avatar Z.J. van de Weg

Prevent NULL values on ci_variables columns

To be more specific; key, and project_id. If either of these is
NULL its wrong, because:

1. storing a key value pair without key is just plain wrong
2. all variables should belong to a project

Non of these cases existed on the staging database.
parent 1ccf101e
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)
def down
# no op
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment